BBNativePlayerViewDelegate
@objc
public protocol BBNativePlayerViewDelegate
Undocumented
-
Player was setup with json
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didSetupWithJsonUrl url: String?)
Parameters
playerView
UIView
url
String
-
Player embed failed
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didFailWithError error: String?)
Parameters
playerView
UIView
error
String
-
MediaClip data was loaded.
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerMediaClipLoaded data: MediaClip)
Parameters
playerView
UIView
data
MediaClip Object (for more information on data objects see the SAPI reference guide on the developer documentation website at: https://support.bluebillywig.com/topics/developers/)
-
The playet view has started
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerViewStarted playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player view has finished
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerViewFinished playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
Project data was loaded.
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerProjectLoaded data: Project)
Parameters
playerView
UIView
data
Project Object (for more information on data objects see the SAPI reference guide on the developer documentation website at : https://support.bluebillywig.com/topics/developers/)
-
The player is now ready to play.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerCanPlay playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The duration of the media in the player has changed
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerDurationChange duration: Double)
Parameters
playerView
UIView
-
The player has executed a play command.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerPlay playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player is now paused.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerPause playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player was paused externally
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAutoPause playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The externally paused player is now playing.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAutoPausePlay playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player is now playing.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerPlaying playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
Playing the media has ended (ads included!)
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerEnded playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player is now seeking.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerSeeking playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The current playback position has changed by the player as a result of a seek action.
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerSeeked seekOffset: Double)
Parameters
playerView
UIView
seekOffset
Double
-
The player is trying to fetch new media data, but is unable to retrieve it and continue playing.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerStall playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player has encountered an error which prevents it from playing the content further.
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerMediaClipFailed playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player changed phase
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerPhaseChange phase: Phase?)
Parameters
playerView
UIView
phase
Phase Enum (for more information on phases, states and modes, see the developer documentation website at https://support.bluebillywig.com/player-api/events-modes-and-phases/)
-
The player changed state
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerStateChange state: State?)
Parameters
playerView
UIView
state
State Enum (for more information on phases, states and modes, see the developer documentation website at https://support.bluebillywig.com/player-api/events-modes-and-phases/)
-
The player changed mode
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerModeChange mode: String?)
Parameters
playerView
UIView
mode
String (for more information on phases, states and modes, see the developer documentation website at https://support.bluebillywig.com/player-api/events-modes-and-phases/)
-
The player is requesting a collapse, handle code appropriately
Declaration
Swift
@objc optional func bbNativePlayerView(didRequestCollapse playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The player is requesting an expand, handle code appropriately
Declaration
Swift
@objc optional func bbNativePlayerView(didRequestExpand playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad was loaded
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdLoaded playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad was not found
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdNotFound playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The advertisment provider encountered an error which prevents the ad from playing in the player.
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerAdError error: String?)
Parameters
playerView
UIView
error
String
-
An ad was started
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdStarted playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad reached the first quartile
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdQuartile1 playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad reached the second quartile
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdQuartile2 playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad reached the third quartile
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdQuartile3 playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ad finished
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAdFinished playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
An ads have finished
Declaration
Swift
@objc optional func bbNativePlayerView(didTriggerAllAdsCompleted playerView: BBNativePlayerView)
Parameters
playerView
UIView
-
The size of the player has changed
Declaration
Swift
@objc optional func bbNativePlayerView(playerView: BBNativePlayerView, didTriggerResize width: Int, height: Int)
Parameters
playerView
UIView
width
Int
height
Int