Package com.wowza.wms.stream
Interface IMediaListReader
-
public interface IMediaListReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
close fileIHTTPStreamerSession
getHTTPStreamerSession()
Get the HTTPStreamerSession associated with this media list readerString
getMediaExtension()
Get media extensionMediaList
getMediaList()
Get the MediaList objectString
getPath()
Get abstract path to the media itemvoid
init(IApplicationInstance appInstance, IMediaStream stream, String mediaReadType, String basePath, String mediaName, IHTTPStreamerSession httpStreamerSession)
Initialize mediaReaderboolean
isOpen()
is file openvoid
open(String basePath, String name)
Open the file for readingvoid
setHTTPStreamerSession(IHTTPStreamerSession httpStreamerSession)
Set the HTTPStreamerSession associated with this media list readervoid
setMediaReaderItem(com.wowza.wms.stream.MediaReaderItem mediaReaderItem)
Set the mediaReader item definitionvoid
setProperties(WMSProperties properties)
Set the properties for this media reader
-
-
-
Method Detail
-
init
void init(IApplicationInstance appInstance, IMediaStream stream, String mediaReadType, String basePath, String mediaName, IHTTPStreamerSession httpStreamerSession)
Initialize mediaReader- Parameters:
stream
- parent streammediaReadType
- media reader type id. Example: flvbasePath
- Base path for application instancemediaName
- 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 filename
- 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
-
-