AudioStreamHandler
public class AudioStreamHandler : StreamHandler
Class in charge of managing the streams assets
-
Returns the Stream type
Declaration
Swift
public func getStreamType() -> StreamType
Return Value
a StreamType Object
-
Returns if the class can hanlde a URL
Declaration
Swift
public func canHandleUrl(url: String) -> Bool
Return Value
a Boolean true or false
-
Set the Stream Asset Handler URL to manage it
- failure success: void block with an PlayerError on error
Declaration
Swift
public func handleUrl(url: String, player: AmpPlayer, success: @escaping (AVPlayerItem?) -> Void, failure: @escaping(PlayerError) -> Void)