|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.stream.provider.FileProvider
public class FileProvider
Pullable provider for files
Field Summary | |
---|---|
static String |
KEY
Class name |
Constructor Summary | |
---|---|
FileProvider(IScope scope,
File file)
Create file provider for given file and scope |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KEY
Constructor Detail |
---|
public FileProvider(IScope scope, File file)
scope
- Scopefile
- FileMethod Detail |
---|
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 to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |