AdPodcastManager

@objc(AASDKAdPodcastManager)
open class AdPodcastManager : NSObject, Identifiable

The AdPodcastManager supports playing a local or a streamed podcast either with the internal player or an external player.

  • A unique identifier for the object to be identifiable.

    Declaration

    Swift

    @objc
    public let objectId: UUID
  • Optional delegate for the AdPodcastManager. See AdPodcastManagerDelegate for available callbacks.

    Declaration

    Swift

    @objc
    public weak var delegate: AdPodcastManagerDelegate?
  • The AdPodcastManager settings.

    Declaration

    Swift

    @objc
    public var adPodcastManagerSettings: AdPodcastManagerSettings
  • Start playing a podcast at url. Can be a local address (path) or http/https.

    Declaration

    Swift

    @objc
    open func play(with url: URL) throws

    Parameters

    url

    local or http/https address

  • Stop the current podcast.

    Declaration

    Swift

    @objc
    open func stop()
  • Pause the current podcast.

    Declaration

    Swift

    @objc
    open func pause()
  • Resume the current podcast.

    Declaration

    Swift

    @objc
    open func resume()
  • Sets the current playback time to the specified time in seconds. Note that it is only available for the internal player. The completion block won’t get called if an error is thrown. If you are using your own player, the SDK will automatically detect the seek and adjust the tracking for various events during playback.

    Throws

    Can throw an error if seek cannot be performed or is not allowed (e.g for an external player)

    Declaration

    Swift

    @objc
    open func seek(to time: TimeInterval, completion: @escaping () -> Void) throws

    Parameters

    time

    the time to which to seek, in seconds

    completion

    the completion block that signals the seek operation has finished

  • Undocumented

    Declaration

    Swift

    override open func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)