OTVAVPlayer
-
Network analytics for the player
-
Playback analytics for the player
-
A view for rendering non-native subtitles to. This view should be at least as large as the relevant AVPlayerLayer.videoRect, but no wider.
-
Private init with AVPlayerItem which should not be called outside. Creates an instance of
OTVAVPlayer
using anAVPlayerItem
. Make sure the item is initialized with OTVAVPlayerItem, otherwise a fatal error will be raised. -
Creates an instance of
OTVAVPlayer
using a URL.Note
Calling this function before loading theOTVSDK
(withOTVSDK.load()
orOTVSDK.load(licence)
) will result in a playback error. -
Set license delegate to player to handle license request.
Note
This method attaches the license delegate to an clean player, which means it MUST be called on player created byOTVAVPlayer()
without any paratemters. If there is only one player instance, this method has the same effect as callingOTVDRMManager.setLicenseDelegate(delegate)
. If there are more than one active player instance, calling this method is the only way to support encrypted stream playback on that player. The delegate is held using a zeroing-weak reference, so it have a value of nil after a it has been deallocated outside. Ensure the delegate is retained until it is not needed. -
Replaces the current item being played with another
AVPlayerItem
.Note
the item should be anOTVAVPlayerItem
, otherwise it will be ignored.
-
Returns an array of tracks available for the specified type.
-
Returns the selected track index for the specified type, or -1 if nothing is selected.
-
Selects the specified track
-
Deselects the specified track.
-
Registers a listener for when the tracks available change. The listener may be called at any point during playback.
-
Unregisters a listener for when the tracks available change
-
Add an external SRT subttile from a given URL