| | 156 | In RC7, the way the player display is configured and programmed within the framework completely changed. The change was required to add support for the display of non-linear ads via HTML5. |
| | 157 | |
| | 158 | The characteristics of the player display are now configured via the "player" configuration block. For example, to hard code the height of a control bar, the following configuration is now used: |
| | 159 | |
| | 160 | {{{ |
| | 161 | { |
| | 162 | "player": { |
| | 163 | "controls": { "height": 35 } |
| | 164 | }, |
| | 165 | "ads": { |
| | 166 | .... |
| | 167 | } |
| | 168 | } |
| | 169 | }}} |
| | 170 | |
| | 171 | Or to set the bottom margins for the display, the following configuration can be used: |
| | 172 | |
| | 173 | {{{ |
| | 174 | "player": { |
| | 175 | "margins": { |
| | 176 | "withControls": 50, |
| | 177 | "withControlsOverride": 50, |
| | 178 | "withoutControls": 30, |
| | 179 | "withoutControlsOverride": 30 |
| | 180 | } |
| | 181 | }, |
| | 182 | "ads": { |
| | 183 | ... |
| | 184 | } |
| | 185 | } |
| | 186 | }}} |
| | 187 | |
| | 188 | To hide the JW Player custom logo during linear ad playback, the following configuration can be used: |
| | 189 | |
| | 190 | {{{ |
| | 191 | { |
| | 192 | "player": { |
| | 193 | "modes": { |
| | 194 | "linear": { |
| | 195 | "hideLogo": true |
| | 196 | } |
| | 197 | } |
| | 198 | }, |
| | 199 | "ads": { |
| | 200 | ... |
| | 201 | } |
| | 202 | } |
| | 203 | }}} |
| | 204 | |
| | 205 | == 5. Displaying Non-Linear Ads with HTML5 == |
| | 206 | |