Interface IMediaListReader


  • public interface IMediaListReader
    • Method Detail

      • init

        void init​(IApplicationInstance appInstance,
                  IMediaStream stream,
                  String mediaReadType,
                  String basePath,
                  String mediaName,
                  IHTTPStreamerSession httpStreamerSession)
        Initialize mediaReader
        Parameters:
        stream - parent stream
        mediaReadType - media reader type id. Example: flv
        basePath - Base path for application instance
        mediaName - name of the media item
      • setMediaReaderItem

        void setMediaReaderItem​(com.wowza.wms.stream.MediaReaderItem mediaReaderItem)
        Set the mediaReader item definition
        Parameters:
        mediaReaderItem -
      • open

        void open​(String basePath,
                  String name)
        Open the file for reading
        Parameters:
        basePath - base path to file
        name - file name without extension
      • close

        void close()
        close file
      • isOpen

        boolean isOpen()
        is file open
        Returns:
        is file open
      • setProperties

        void setProperties​(WMSProperties properties)
        Set the properties for this media reader
        Parameters:
        properties - properties
      • getPath

        String getPath()
        Get abstract path to the media item
        Returns:
        abstract path to the media item
      • getMediaExtension

        String getMediaExtension()
        Get media extension
        Returns:
        media extension
      • getMediaList

        MediaList getMediaList()
        Get the MediaList object
        Returns:
        MediaList object
      • getHTTPStreamerSession

        IHTTPStreamerSession getHTTPStreamerSession()
        Get the HTTPStreamerSession associated with this media list reader
        Returns:
        HTTPStreamerSession
      • setHTTPStreamerSession

        void setHTTPStreamerSession​(IHTTPStreamerSession httpStreamerSession)
        Set the HTTPStreamerSession associated with this media list reader
        Parameters:
        httpStreamerSession - HTTPStreamerSession