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 optional timestamp to activate DVR. The stream will reconnect in the past at the specified timestamp.

    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 that url must not be a file URL (e.g the scheme is file:). Note that the decorated URL returned here may not be the same as in adStreamManager(_ adstreamManager: AdStreamManager, willStartPlaying url: URL) delegate method.

    Declaration

    Swift

    public static func decorate(_ url: URL) throws -> URL
  • The AdswizzAdStreamManager did receive metadata.

    Declaration

    Swift

    override public func didReceive(metadata: [AVMetadataItem])
  • Builder to conveniently create an AdswizzAdStreamManager instance.

    See more

    Declaration

    Swift

    @objc(AASDKAdswizzAdStreamManagerBuilder)
    public class Builder : NSObject