This command gets information about what OvenPlayer is currently doing.
getBrowser()
playerInstance.getBrowser()
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.
example
{
browser: "Chrome",
browserMajorVersion: 73,
browserVersion: "73.0.3683.103",
cookies: true,
flashVersion: "no check",
mobile: false,
os: "Mac OS X",
osVersion: "10_14_0",
screen: "1440 x 900",
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
webview: false
}
setTimecodeMode()
playerInstance.setTimecodeMode(isShow)
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.
isTimecodeMode()
playerInstance.isTimecodeMode()
This command checks whether OvenPlayer is currently running in time-code or frame-code.
getFramerate()
playerInstance.getFramerate()
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.
seekFrame()
playerInstance.seekFrame(frameCount)
This command moves the playback to frameCount.
getDuration()
playerInstance.getDuration()
This command gets the duration of content.
getPosition()
playerInstance.getPosition()
This command gets the current playing time of content.
getVolume()
playerInstance.getVolume()
This command gets the volume value set in OvenPlayer.
setVolume()
playerInstance.setVolume(volume)
You can use this command to control volume in OvenPlayer.
getMute()
playerInstance.getMute()
This command gets if OvenPlayer is currently muted (or volume: 0).
setMute()
playerInstance.setMute(isMute)
You can use this command to set mute.
play()
playerInstance.play()
This command plays OvenPlayer.
If OvenPlayer is not ready to play, OvenPlayer will wait until it is prepared and then play.
pause()
playerInstance.pause()
This command pauses the playing content.
seek()
playerInstance.seek(position)
This command moves the playback to a position.
getPlaybackRate()
playerInstance.getPlaybackRate()
This command gets the playback speed information of content.
setPlaybackRate()
playerInstance.setPlaybackRate(playbackRate)
You can use this command to adjust the playback speed in OvenPlayer.
This command gets the index information of the currently playing source.
setCurrentSource()
playerInstance.setCurrentSource(index)
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.
getQualityLevels()
playerInstance.getQualityLevels()
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.