Interface FileReplay

  • All Superinterfaces:
    Replay, Stream

    public interface FileReplay
    extends Replay
    Local file replay stream control interface.

    Provides control over some local file stream, allowing to control playback.

    Every client that requests a reference on a local file replay stream is given its own dedicated instance of that stream. Multiple, independent stream may thus be open from the same file.

    The stream is stopped and released as soon as the reference that provides it is closed. All open sinks are closed as a consequence.

    • Field Detail

      • TRACK_THERMAL_UNBLENDED

        static final String TRACK_THERMAL_UNBLENDED
        Name for the thermal unblended video track in thermal media files.
        See Also:
        Constant Field Values
    • Method Detail

      • videoTrackOf

        @NonNull
        static FileReplay.Source videoTrackOf​(@NonNull
                                              File file,
                                              @NonNull
                                              String trackName)
        Creates a source for streaming a specific video track from a local file.
        Parameters:
        file - local file to stream
        trackName - name of the track to select for streaming
        Returns:
        a new Source instance, configured for streaming the specified local file and track
      • defaultVideoTrackOf

        @NonNull
        static FileReplay.Source defaultVideoTrackOf​(@NonNull
                                                     File file)
        Creates a source for streaming the default video track from a local file.
        Parameters:
        file - local file to stream
        Returns:
        a new Source instance, configured for streaming the default video track from the specified local file
      • source

        @NonNull
        FileReplay.Source source()
        Informs about the configured source for this file replay stream.
        Returns:
        file replay source