iOS SDK API Reference

Brid SDK playback methods

📘

Call methods

You must first initialized player, and then call mathods. You can also call on 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()

Brid SDK getter methods

isFullscreen

Check if player is in fullscreen, return type boolean

[self.player isFullscreen];
player.isFullscreen()

isPlayerInView

Check if player is first in view on screen, return type boolean

[self.player isPlayerInView];

📘

Information

If 1px (pixel) view is in front of Brid Player, mothod isPlayerInView will return false

getCurrentTime

Return current time of video, return type double

[self.player getCurrentTime];
player.getCurrentTime()

getDuration

Return duration of video, return type double

[self.player getDuration];
player.getDuration()

getMuted

Check is player muted, return type double

[self.player getMuted];
player.getMuted()

getVolume

Check current player volume, return type float

[self.player getVolume];
player.getVolume()

isAdInProgress

Check if ad is in progress, return type boolean

[self.player isAdInProgress];
player.isAdInProgress()

getCurrentIndex

Get current video index from playlist, return type boolean NSInteger

[self.player getCurrentIndex];
player.getCurrentIndex()

getPlaylist

Get current playlist, return type array of Brid VideoData object

[self.player getPlaylist];
player.getPlaylist()

getSource

Get current video url, return type NSString

[self.player getSource];
player.getSource()

getVideo

Get current video object, return type Brid VideoData object

[self.player getVideo];
player.getVideo()

Brid SDK setters methods

setVolume

Set volume on player, setter type float. Float number for volume is from 0.0 to 1.0

[self.player setVolume:float];
player.setVolum(float)

playByIndex

Play video content by index in playlist, setter type NSInteger

[self.player playByIndex: Int];
player.play(by: Int)

setVideo

Set custom video object.

[self.player setVideo:<video: VideoData>];
player.setVideo(<video: VideoData>)

📘

Creating video object

setVideoUrl

Set custom video from url

[self.player setVideoUrl:<url: String>];
player.setVideoUrl(<url: String>)

setPlaylist

Set external JSON

[self.player setPlaylist:<url: URL>];
player.setPlaylist(<url: URL>)

setToFullscreen

Set player to fullscreen

[self.player setToFullscreen];
player.setToFullscreen()

autoFullscreen

Set auto fullscreen when devices rotate. Auto rotate is always enabled.

[self.player autoFullscreenWhenRotating:NO];
player.autoFullscreen(whenRotating: false)

Did this page help you?