JWVideoSource
@objcMembers
public class JWVideoSource : NSObject
Defines a video source which represents a visual quality level of the video.
-
The URL of the video source.
Declaration
Swift
public internal(set) var file: URL! { get }
-
A label which represents the visual quality level of the video source.
Declaration
Swift
public internal(set) var label: String! { get }
-
Determines whether the video source is the default. The default value is
false
.Declaration
Swift
public internal(set) var defaultVideo: Bool { get }
-
An object containing drm-specific info if needed.
If generated from a JWPlatform request, the properties will stored in the same structure as the Delivery API. For example:
if let fairplay = drm["fairplay"] as? JSONObject, let spc = fairplay["processSpcUrl"] as? String, let cert = fairplay["certificateUrl"] as? String { // provide these urls to your JWDRMContentKeyDataSource }
Note
JWPlatform will also populate this with other supported DRM technology credentials, such as Widevine for casting DRM content to a Chromecast receiver. See documentation for details.Declaration
Swift
public internal(set) var drm: JSONObject? { get }
-
Overridden to provide more accurate value comparisons.
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool