The video-player provides the following public interface for accessing and manipulating its state.
configurationThe configuration of the video-player. Configuration needs to be reloaded manually after edits (see below).stateThe current state of the video-player. Must not be modified directly, but via the methods below.
play()Plays the video.pause()Pauses the video.seek(seconds)Seeks to the specified position.setPlaybackRate(playbackRate)Sets the playback rate.setQuality(quality)Sets the quality of the stream.setVolume(volume)Sets the volume of the playback (0.0-1.0).mute()Enables muting.unmute()Disables muting.showCaptions(language[, type])Shows captions in the specified language and type (optional).hideCaptions()Hides captions.showInteractiveTranscript(language[, type])Shows interactive transcript in the specified language (optional).hideInteractiveTranscript()Hides interactive transcript.setResizerRatio(ratio, index)Sets the ratio of a single resizer. If index is omitted, first resizer is affected.setResizerRatios(ratios)Sets the ratios of all resizers.enterFullscreen()Enters the fullscreen mode.exitFullscreen()Exits the fullscreen mode.reloadConfiguration()Reloads the configuration.