Below are all the player attributes that are supported by the SundaySky player.
See Embedding the SundaySky Player in a Webpage for detailed guidelines on how to embed the player script code.
Player Customization Attributes
aspect-ratio | cta-highlight | default-error-message |
playsinline | poster | pre-roll |
pre-roll | |
Description | The URL of the image file that is displayed after the viewer clicks the play button, until the video is loaded in the player. |
Type | Attribute is hard-coded in player code with the default option. |
Default | Based on the aspect ratio of the video, the relevant pre-roll image is added. Click to see the default horizontal pre-roll image
Click to see the default vertical pre-roll image
|
Note | Add the attribute only if you prefer a different pre-roll image. We recommend that the image be animated and in GIF format. |
How to Add Attribute | sskyplayer.setAttribute('pre-roll', 'https://play.mycompany.com/resources/preroll_training_video.gif'); |
Accessibility-Related Attributes
cc-on-by-default | control-bar-lock | controls-end-state |
no-captions | no-fullscreen | transcript-button |
controls-end-state | |
Description |
Mobile only. Defines the state of the control bar after the video ends. |
Type | Attribute is hard-coded in player code with the default option. |
Options | hide show |
Default | hide (control bar is hidden) |
Note | Add the attribute only if you want to show the control bar after the video ends. |
How to Add Attribute | sskyplayer.setAttribute('controls-end-state','show'); |
no-captions | |
Description | Defines whether to hide the CC (closed captioning) button. |
Type | Attribute is hard-coded in player code with the default option. |
Options | true false |
Default | false (CC button is displayed) |
Note | Add the attribute only if you want to hide the CC (closed captioning) button. |
How to Add Attribute | sskyplayer.setAttribute('no-captions','true'); |
no-fullscreen | |
Description | Defines whether to hide the full screen button. |
Type | Attribute is hard-coded in player code with the default option. |
Options | on off |
Default | off (full screen button is displayed) |
Note | Add the attribute (with 2 single quotes) only if you want to hide the full screen button. |
How to Add Attribute | sskyplayer.setAttribute('no-fullscreen', ''); |
transcript-button | |
Description | Defines whether the transcript button is included in the control bar. When this button is clicked, a detailed video transcript is displayed in a new tab. |
Type | Attribute is included in code snippet: sskyplayer.setAttribute('transcript-button','show'); |
Options | hide show |
Default | show |
Note | Replace show with hide if you want to hide the transcript button. |
How to Add Attribute | sskyplayer.setAttribute('transcript-button','hide'); |