tvOS SDK API Reference
Brid SDK playback methods
Call methods
You must first initialise your player, and then call methods. You can also subscribe to a specified event.
play
Set player to play video content
[self.player play];
player.play()
pause
Set player to pause video content
[self.player pause];
player.pause()
mute
Set player to mute
[self.player mute];
player.mute()
unmute
Set player to unmute
[self.player unmute];
player.unmute()
next
Call next video from playlist
[self.player next];
player.next()
previous
Call previous video from playlist
[self.player previous];
player.previous()
stop
Player stop video
[self.player stop];
player.stop()
getCurrentTime
Get current time. Return CMTime type
[self.player getCurrentTime];
player.getCurrentTime()
seekToTime
Set player time. Set type CMTime
[player seekToTime:(CMTime)];
player.seekToTime(CMTime)
Calling seekToTime
To trigger this method, subscribe to the "playerVideoInitialized" event.
Updated 10 months ago