API
This chapter lists information about the OvenPlayer API, which you can control with OvenPlayerInstance.
Last updated
This chapter lists information about the OvenPlayer API, which you can control with OvenPlayerInstance.
Last updated
This command returns OvenPlayer version information.
This command returns the configured option value when OvenPlayer is initialized.
Type | Memo |
---|---|
This command initializes OvenPlayer with a new playlist.
Type | Memo |
---|---|
This command gets information about what OvenPlayer is currently doing.
This command returns the analyzed information from the user agent. However, this information is not necessarily correct because the user agent can hide or misleading information.
You can use this command to set whether the time-code or frame-code is displayed in the OvenPlayer control bar. However, if you want to use frame-code, the source must contain frame rate information.
This command checks whether OvenPlayer is currently running in time-code or frame-code.
This command gets the frame-rate value of playing video. However, if you want to see frame-rate, the source or playlist must have information about frame-rate.
This command moves the playback to frameCount.
This command gets the duration of the content.
This command gets the current playing time of content.
This command gets the volume value set in OvenPlayer.
You can use this command to control volume in OvenPlayer.
This command gets if OvenPlayer is currently muted (or volume: 0).
You can use this command to set mute.
This command plays OvenPlayer.
If OvenPlayer is not ready to play, OvenPlayer will wait until it is prepared and then play.
This command pauses the playing content.
This command moves the playback to a position.
This command gets the playback speed information of content.
You can use this command to adjust the playback speed in OvenPlayer.
This command gets a registered playlist.
This command gets the index information of the playlist currently playing.
This command changes the playlist currently playing.
This command gets information about sources from the playlist or sources of a single content currently playing.
This command gets the index information of the currently playing source.
This command changes the source of the playing content. It depends on your settings, but the protocol and video quality (resolution) will change by default.
This command gets a list of resolutions if the metadata in the playing content contains quality information. And it is available when using the MPEG-DASH protocol.
This command gets the index of the current video quality information.
You can use this command to set to play as index quality.
This command checks whether the video quality has been set to change automatically based on internet status, condition, and more.
You can use this command to set whether to change the video quality automatically.
It reads the list of registered subtitles in the current playlist.
This command gets the index of the using subtitle in the current playlist.
You can use this command to set the subtitle of the current playlist to the caption of the index.
You can use this command to add subtitles to the current playlist.
You can use this command to remove the subtitle corresponding to the index from the current playlist.
This command stops playing and moves the playback position to 0.
This API can show or hide the player's control area.
This command removes the player and releases all resources.
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
Type | Memo |
---|---|
null
Attribute
Type
Memo
autoStart
Boolean
browser
Object
controls
Boolean
loop
Boolean
mediaContainer
DOMElement
mute
Boolean
playbackRate
Number
playbackRates
Array Of Numbers
playlist
Array Of playlist
timecode
Boolean
volume
Number
Array
playlist or sources
HTML Video Element
<video></video>
null
String
"idle", "paused", "playing", "error", "loading", "complete", "adLoaded", "adPlaying", "adPaused", "adComplete"
null
Object
User Agent Information
Boolean
null
null
Boolean
true : timecode, false : frame
null
Number
Number
frameCount to move
Number
Moved frameCount
null
Number
In live-broadcast, mark as Infinity
null
Number
null
Number
0 ~ 100
Number
0 ~ 100
null
null
Boolean
Boolean
Boolean
muted or not
null
null
null
null
Number
Seconds
null
null
Number
Number
Playback speed to change
Number
Changed playback speed
null
Array
null
Number
Number
null
null
Array
null
Number
Number
Number
Configured source index
null
Array
null
Number
Number
null
null
Boolean
Boolean
null
null
Array
null
Number
Number
null
Object
Number
null
null
null
Boolean
set true or false to show or hide controls
null