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.
| Modifier and Type | Method | Description |
|---|---|---|
java.io.File |
streamToFileForRead(IMediaStream stream) |
Get the File object to read from a stream (get stream name, ext and query from stream object)
|
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)
|
java.io.File |
streamToFileForWrite(IMediaStream stream) |
Get the File object to write to a stream (get stream name, ext and query from stream object)
|
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)
|
java.io.File streamToFileForRead(IMediaStream stream)
stream - streamjava.io.File streamToFileForRead(IMediaStream stream, String name, String ext, String query)
stream - streamname - stream nameext - stream prefix (Ex. mp4:)query - query part of stream name (Ex. mystream?param1=value1)java.io.File streamToFileForWrite(IMediaStream stream)
stream - streamjava.io.File streamToFileForWrite(IMediaStream stream, String name, String ext, String query)
stream - streamname - stream nameext - stream prefix (Ex. mp4:)query - query part of stream name (Ex. mystream?param1=value1)