public class FileProvider extends Object implements IPassive, ISeekableProvider, IPullableProvider, IPipeConnectionListener, IStreamTypeAwareProvider
Constructor and Description |
---|
FileProvider(IScope scope,
File file)
Create file provider for given file and scope
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasVideo()
Check if the provider contains video tags.
|
void |
onOOBControlMessage(IMessageComponent source,
IPipe pipe,
OOBControlMessage oobCtrlMsg) |
void |
onPipeConnectionEvent(PipeConnectionEvent event)
Pipe connection event handler
|
IMessage |
pullMessage(IPipe pipe) |
IMessage |
pullMessage(IPipe pipe,
long wait) |
int |
seek(int ts)
Seek the provider to timestamp ts (in milliseconds).
|
void |
setStart(int start)
Setter for start position
|
public static final String KEY
public void setStart(int start)
start
- Start positionpublic boolean hasVideo()
hasVideo
in interface IStreamTypeAwareProvider
public IMessage pullMessage(IPipe pipe) throws IOException
pullMessage
in interface IPullableProvider
IOException
public IMessage pullMessage(IPipe pipe, long wait) throws IOException
pullMessage
in interface IPullableProvider
IOException
public void onPipeConnectionEvent(PipeConnectionEvent event)
onPipeConnectionEvent
in interface IPipeConnectionListener
event
- Pipe connection eventpublic void onOOBControlMessage(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg)
onOOBControlMessage
in interface IMessageComponent
source
- Message component sourcepipe
- Connection pipeoobCtrlMsg
- Out-of-band control messagepublic int seek(int ts)
seek
in interface ISeekableProvider
ts
- Timestamp to seek toCopyright © 2006-2012 The Red5 Project