public interface IBroadcastStream extends IStream
| Modifier and Type | Method and Description |
|---|---|
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) |
close, getCodecInfo, getCreationTime, getName, getScope, getStartTime, start, stopvoid 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()
nullif the stream is not being saved.
IProvider getProvider()
String getPublishedName()
NetStream.publishon 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()
Copyright © 2005–2017 Red5. All rights reserved.