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 IStreamTypeAwareProviderpublic IMessage pullMessage(IPipe pipe) throws IOException
pullMessage in interface IPullableProviderIOExceptionpublic IMessage pullMessage(IPipe pipe, long wait) throws IOException
pullMessage in interface IPullableProviderIOExceptionpublic void onPipeConnectionEvent(PipeConnectionEvent event)
onPipeConnectionEvent in interface IPipeConnectionListenerevent - Pipe connection eventpublic void onOOBControlMessage(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg)
onOOBControlMessage in interface IMessageComponentsource - Message component sourcepipe - Connection pipeoobCtrlMsg - Out-of-band control messagepublic int seek(int ts)
seek in interface ISeekableProviderts - Timestamp to seek toCopyright © 2006-2012 The Red5 Project