BoxCastPlayer
public class BoxCastPlayer : AVPlayer
The player to be used for playback of a BoxCast broadcast. This class is a simple subclass of
AVPlayer
and can be used in exactly the same manner.
-
Initializes and returns a newly allocated player object. Important to note that this is a failable initializer and should be handled appropriately.
Declaration
Swift
public init?(broadcast: Broadcast, broadcastView: BroadcastView)
Parameters
broadcast
The broadcast for playback. This must be a detailed broadcast or the initializer will fail.
broadcastView
The broadcast view for the broadcast.