AmpMuxManager
open class AmpMuxManager : NSObject
extension AmpMuxManager: PlayerEventObserver
Class in charge of managing the integration between the AMP SDK and the Mux SDK.
-
Flag to enable or disable automatic error events logging.
Default value
true
.Declaration
Swift
public var autologErrors: Bool
-
Creates a new instance of the AmpMuxManager.
Declaration
Swift
public init(player: AmpPlayer, info: AmpMuxInfo)
Parameters
player
Instance of the player that is going to be linked to Mux.
info
Instance of AmpMuxInfo.
-
Logs an error event.
if the
autologErrors
istrue
the error event not going to be logged.Declaration
Swift
public func reportError(errorCode: Int, errorMessage: String)
Parameters
errorCode
The error code.
errorMessage
The error message.
-
Declaration
Swift
public func onPositionChange(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func streamReadyToPlay(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func willHandleUrl(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onBufferingStateChanged(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onPlaybackStateChanged(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func willStop(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onAmpError(_ ampPlayer: AmpPlayer, error: PlayerError, code: Int, message: String)
-
Declaration
Swift
public func onSeek(_ currentTime: Double, _ time: TimeInterval)
-
Declaration
Swift
public func onAdBreakStarted(break: AdBreakInfo?)
-
Declaration
Swift
public func onAdStarted(ad: AdInfo?)
-
Declaration
Swift
public func onAdEnded(ad: AdInfo?)
-
Declaration
Swift
public func onAdBreakEnded(break: AdBreakInfo?)
-
Declaration
Swift
public func onAdError(error: NSObject)