ContentManager
public class ContentManager : NSObject, DTGContentManager
Undocumented
-
shared singleton object
Declaration
Swift
public static let shared: DTGContentManager -
Version string
Declaration
Swift
public static let versionString: String -
The client tag
Declaration
Swift
public static let clientTag: String -
A custom referrer, used for requesting the play manifest, if no referrer is set app id is used.
Declaration
Swift
public var referrer: String? -
Declaration
Swift
public weak var delegate: ContentManagerDelegate? -
Declaration
Swift
public var storagePath: URL { get } -
Declaration
Swift
public func setDefaultAudioBitrateEstimation(bitrate: Int) -
Declaration
Swift
public func start(completionHandler: (() -> Void)?) throws -
Declaration
Swift
public func stop() -
Declaration
Swift
public func startItems(inStates states: DTGItemStartableState...) throws -
Declaration
Swift
public func itemsByState(_ state: DTGItemState) throws -> [DTGItem] -
Declaration
Swift
public func itemById(_ id: String) throws -> DTGItem? -
Declaration
Swift
public func addItem(id: String, url: URL) throws -> DTGItem? -
Declaration
Swift
public func loadItemMetadata(id: String, preferredVideoBitrate: Int?) throws -
Declaration
Swift
public func startItem(id: String) throws -
Declaration
Swift
public func pauseItem(id: String) throws -
Declaration
Swift
public func removeItem(id: String) throws -
Declaration
Swift
public func itemPlaybackUrl(id: String) throws -> URL? -
Declaration
Swift
public func handleEventsForBackgroundURLSession(identifier: String, completionHandler: @escaping () -> Void) -
Declaration
Swift
public func setup() throws
-
Undocumented
Declaration
Swift
public func webServerDidStart(_ server: GCDWebServer)
ContentManager Class Reference