Package org.red5.server.api.stream
Interface IClientStream
- All Superinterfaces:
IStream
- All Known Subinterfaces:
IClientBroadcastStream
,IPlaylistSubscriberStream
,ISingleItemSubscriberStream
,ISubscriberStream
- All Known Implementing Classes:
AbstractClientStream
,ClientBroadcastStream
,PlaylistSubscriberStream
,SingleItemSubscriberStream
A stream that is bound to a client.
- Author:
- The Red5 Project, Steven Gong (steven.gong@gmail.com)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the published stream name that this client is consuming.int
Get the buffer duration for this stream as requested by the client.Get connection containing the stream.Get stream id allocated in a connection.void
setBroadcastStreamPublishName
(String streamName) Set the published stream name that this client is consuming.void
setClientBufferDuration
(int bufferTime) Set the buffer duration for this stream as requested by the client.Methods inherited from interface org.red5.server.api.stream.IStream
close, getCodecInfo, getCreationTime, getName, getScope, start, stop
-
Field Details
-
MODE_READ
- See Also:
-
MODE_RECORD
- See Also:
-
MODE_APPEND
- See Also:
-
MODE_LIVE
- See Also:
-
MODE_PUBLISH
- See Also:
-
-
Method Details
-
getStreamId
Number getStreamId()Get stream id allocated in a connection.- Returns:
- the stream id
-
getConnection
IStreamCapableConnection getConnection()Get connection containing the stream.- Returns:
- the connection object or null if the connection is no longer active
-
setClientBufferDuration
void setClientBufferDuration(int bufferTime) Set the buffer duration for this stream as requested by the client.- Parameters:
bufferTime
- duration in ms the client wants to buffer
-
getClientBufferDuration
int getClientBufferDuration()Get the buffer duration for this stream as requested by the client.- Returns:
- bufferTime duration in ms the client wants to buffer
-
setBroadcastStreamPublishName
Set the published stream name that this client is consuming.- Parameters:
streamName
- of stream being consumed
-
getBroadcastStreamPublishName
String getBroadcastStreamPublishName()Returns the published stream name that this client is consuming.- Returns:
- stream name of stream being consumed
-