Methods

MethodDescriptionExample
mute()Mute audioplayer.mute()
unmute()Unmute audioplayer.unmute()
setVolume(volume: number)Set the video volume levelplayer.setVolume(75)
pause()Pause the videoplayer.pause()
play()Play the videoplayer.play()
setPlaybackRate(rate: number)Set the current video playback rate. For example: 720, 480, 240, 144. (If the rate is not available, it will log an error in the console.)player.setPlaybackRate(720)
setAdaptive(isAdaptive: boolean)Set the video playback rate to adaptive (auto) if true, and not adaptive if false.player.setAdaptive(true)
setCurrentTime(seconds: number)Set the current video time position (in seconds).player.setCurrentTime(120)