|
||||||||||
| 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 - File| Method 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 IPullableProviderIOException
public IMessage pullMessage(IPipe pipe,
long wait)
throws IOException
pullMessage in interface IPullableProviderIOExceptionpublic void onPipeConnectionEvent(PipeConnectionEvent event)
onPipeConnectionEvent in interface IPipeConnectionListenerevent - Pipe connection event
public void onOOBControlMessage(IMessageComponent source,
IPipe pipe,
OOBControlMessage oobCtrlMsg)
onOOBControlMessage in interface IMessageComponentsource - Message component sourcepipe - Connection pipe
TODOoobCtrlMsg - Out-of-band control messagepublic int seek(int ts)
seek in interface ISeekableProviderts - Timestamp to seek to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||