AdswizzAdStreamManager
@objc(AASDKAdswizzAdStreamManager)
public class AdswizzAdStreamManager : AdStreamManager
An AdswizzAdStreamManager
enables the AdswizzSDK
to deliver streaming functionality.
-
The HTTP/HTTPS protocol the
AdswizzAdStreamManager
will 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
AdswizzAdStreamManager
will 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
AdswizzAdStreamManager
will use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let companionZone: String?
-
Prepare the stream at
url
by 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
url
with an optionaltimestamp
to 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
url
with Adswizz specific query items. Note thaturl
must 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
AdswizzAdStreamManager
did receivemetadata
.Declaration
Swift
override public func didReceive(metadata: [AVMetadataItem])
-
Builder to conveniently create an
See moreAdswizzAdStreamManager
instance.Declaration
Swift
@objc(AASDKAdswizzAdStreamManagerBuilder) public class Builder : NSObject