JWThumbnailTrackBuilder
@objcMembers
public class JWThumbnailTrackBuilder : NSObject, JWBuilder
The builder for creating a JWMediaTrack used for thumbnails.
-
Declaration
Swift
public typealias Output = JWMediaTrack
-
Builds a media track based off the settings provided.
Throws
throws An error if the track is not setup properly.Declaration
Swift
public func build() throws -> JWMediaTrack
-
Sets the path to the thumbnail track file.
Note
Files must be in WebVTT format, these VTT files contain links to the actual thumbnail images, which can be in JPG, PNG or GIF format.Declaration
Swift
@discardableResult public func file(_ file: URL) -> JWThumbnailTrackBuilder
Parameters
file
Path to the thumbnail track file.
Return Value
The builder, so setters can be chained.