AdswizzAdStreamManager
@objc(AASDKAdswizzAdStreamManager)
public class AdswizzAdStreamManager : AdStreamManager
An AdswizzAdStreamManager enables the AdswizzSDK to deliver streaming functionality.
-
The HTTP/HTTPS protocol the
AdswizzAdStreamManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let httpProtocol: HTTPProtocol -
The ad server that the
AdswizzAdStreamManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let adServer: String -
The companion zoneId that the
AdswizzAdStreamManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let companionZone: String? -
Prepare the stream at
urlby starting buffering the internal player.Declaration
Swift
override public func prepare(with url: URL) throws -
Play the stream at
url.Declaration
Swift
override public func play(with url: URL) throws -
Play the stream at
urlwith an optionaltimestampto activate DVR. The stream will reconnect in the past at the specifiedtimestamp.Declaration
Swift
public func play(with url: URL, timestamp: NSNumber) throws -
Request the DVR metadata from the AdStream server.
Declaration
Swift
public func requestDVRMetadata(completion: ((Result<AdStreamDVRMetadata, Error>) -> Void)? = nil) -
Stop the DVR metadata request from the AdStream server.
Declaration
Swift
public func cancelDVRMetadataRequest() -
Augment your stream
urlwith Adswizz specific query items. Note thaturlmust not be a file URL (e.g the scheme isfile:). Note that the decorated URL returned here may not be the same as inadStreamManager(_ adstreamManager: AdStreamManager, willStartPlaying url: URL)delegate method.Declaration
Swift
public static func decorate(_ url: URL) throws -> URL -
The
AdswizzAdStreamManagerdid receivemetadata.Declaration
Swift
override public func didReceive(metadata: [AVMetadataItem]) -
Builder to conveniently create an
See moreAdswizzAdStreamManagerinstance.Declaration
Swift
@objc(AASDKAdswizzAdStreamManagerBuilder) public class Builder : NSObject