|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBroadcastStream
A broadcast stream is a stream source to be subscribed by clients. To subscribe a stream from your client Flash application use NetStream.play method. Broadcast stream can be saved at server-side.
Method Summary | |
---|---|
void |
addStreamListener(IStreamListener listener)
Add a listener to be notified about received packets. |
Notify |
getMetaData()
Returns the metadata for the associated stream, if it exists. |
IProvider |
getProvider()
Get the provider corresponding to this stream. |
String |
getPublishedName()
Get stream publish name. |
String |
getSaveFilename()
Get the filename the stream is being saved as. |
Collection<IStreamListener> |
getStreamListeners()
Return registered stream listeners. |
void |
removeStreamListener(IStreamListener listener)
Remove a listener from being notified about received packets. |
void |
saveAs(String filePath,
boolean isAppend)
Save the broadcast stream as a file. |
void |
setPublishedName(String name)
|
Methods inherited from interface org.red5.server.api.stream.IStream |
---|
close, getCodecInfo, getCreationTime, getName, getScope, start, stop |
Method Detail |
---|
void saveAs(String filePath, boolean isAppend) throws IOException, ResourceNotFoundException, ResourceExistException
filePath
- The path of the file relative to the scope.isAppend
- Whether to append to the end of file.
IOException
- File could not be created/written to.
ResourceExistException
- Resource exist when trying to create.
ResourceNotFoundException
- Resource not exist when trying to append.String getSaveFilename()
null
if the stream is not being saved.IProvider getProvider()
String getPublishedName()
NetStream.publish
on client side in
SWF.
void setPublishedName(String name)
name
- Set stream publish namevoid addStreamListener(IStreamListener listener)
listener
- the listener to addvoid removeStreamListener(IStreamListener listener)
listener
- the listener to removeCollection<IStreamListener> getStreamListeners()
Notify getMetaData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |