What JavaScript methods are available for Video Player?
Question
What JavaScript methods may be used for controlling the behavior of Video Player?
Answer
The following table describes the available actions and JavaScript methods available for controlling VideoPlayer:
Action | Description | JavaScript |
---|---|---|
Play | Play video |
|
Pause | Pause video |
|
Jump Forward | Jump forward n seconds |
|
Jump Backward | Jump backward n seconds |
|
Seek Time | Jump to a time in seconds |
|
Seek Position | Jump to a % location using decimal 0.0-1.0 |
|
Seek Live | Jump to live in a live stream |
|
Show specified subtitles | Show subtitles specified by label/language |
|
Show first/default subtitles | Show first available subtitles |
|
Hide subtitles | Hide subtitles |
|
Toggle subtitles | Toggle subtitles |
|