JWVideoSourceBuilder
@objcMembers
public class JWVideoSourceBuilder : NSObject, JWBuilder
The builder for JWVideSource.
-
Declaration
Swift
public typealias Output = JWVideoSource -
Builds a
JWVideoSourcestructure.Throws
throws An error if the source is not setup properly.Declaration
Swift
public func build() throws -> JWVideoSource -
Sets the video source using a URL.
Declaration
Swift
@discardableResult public func file(_ file: URL) -> JWVideoSourceBuilderParameters
fileThe URL of the video source.
Return Value
The builder, so setters can be chained.
-
Sets the label which represents the quality level of the video source.
Note
The string provided is displayed as a literal, and is not looked up in a localized string table.Declaration
Swift
@discardableResult public func label(_ label: String) -> JWVideoSourceBuilderParameters
labelA string to be shown in the quality level menu.
Return Value
The builder, so setters can be chained.
-
Sets the defaultVideo which determines whether the video source is the default. The default value is
false.Declaration
Swift
@discardableResult public func defaultVideo(_ defaultVideo: Bool) -> JWVideoSourceBuilderParameters
defaultVideoA boolean flag which determines whether the video source is the default.
Return Value
The builder, so setters can be chained.
JWVideoSourceBuilder Class Reference