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 an AVPlayerItem. 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 the OTVSDK (with OTVSDK.load() or OTVSDK.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 by OTVAVPlayer() without any paratemters. If there is only one player instance, this method has the same effect as calling OTVDRMManager.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 an OTVAVPlayerItem, otherwise it will be ignored.

Tracks API