FileReplayFactory

@objc(GSFileReplayFactory)
public class FileReplayFactory : NSObject

File replay factory.

  • Creates a source for streaming a media resource.

    Declaration

    Swift

    @objc(videoTrackOf:track:)
    public static func videoTrackOf(file: URL, track: MediaItem.Track) -> FileReplaySource

    Parameters

    file

    url of file

    track

    chosen track of file to stream

    Return Value

    file replay source

  • Creates a source for streaming the default video track from a local file.

    Declaration

    Swift

    @objc(videoTrackOf:)
    public static func defaultVideoTrackOf(file: URL) -> FileReplaySource

    Parameters

    file

    url of file

    Return Value

    file replay source