Interface IMediaStreamFileMapper


  • public interface IMediaStreamFileMapper

    Interface for mapping a IMediaStream to the underlying file system. Implement this interface and set your class using IApplicationInstance.setStreamFileMapper(IMediaStreamFileMapper streamFileMapper). Your class will then be called each time a stream needs to be mapped to the underlying file system.

    • Method Detail

      • streamToFileForRead

        java.io.File streamToFileForRead​(IMediaStream stream,
                                         String name,
                                         String ext,
                                         String query)
        Get the File object to read from a stream (specify name, ext and query)
        Parameters:
        stream - stream
        name - stream name
        ext - stream prefix (Ex. mp4:)
        query - query part of stream name (Ex. mystream?param1=value1)
        Returns:
        resultant File object
      • streamToFileForRead

        java.io.File streamToFileForRead​(IMediaStream stream)
        Get the File object to read from a stream (get stream name, ext and query from stream object)
        Parameters:
        stream - stream
        Returns:
        resultant File object
      • streamToFileForWrite

        java.io.File streamToFileForWrite​(IMediaStream stream,
                                          String name,
                                          String ext,
                                          String query)
        Get the File object to write to a stream (specify name, ext and query)
        Parameters:
        stream - stream
        name - stream name
        ext - stream prefix (Ex. mp4:)
        query - query part of stream name (Ex. mystream?param1=value1)
        Returns:
        resultant File object
      • streamToFileForWrite

        java.io.File streamToFileForWrite​(IMediaStream stream)
        Get the File object to write to a stream (get stream name, ext and query from stream object)
        Parameters:
        stream - stream
        Returns:
        resultant File object