Package org.red5.server.stream
Class AbstractClientStream
java.lang.Object
org.red5.server.stream.AbstractStream
org.red5.server.stream.AbstractClientStream
- All Implemented Interfaces:
IClientStream,IStream
- Direct Known Subclasses:
ClientBroadcastStream,PlaylistSubscriberStream,SingleItemSubscriberStream
Abstract base for client streams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringStream name of the broadcasting stream.private intBuffer duration in ms as requested by the clientprivate WeakReference<IStreamCapableConnection>Connection that works with streamsprivate NumberFields inherited from class org.red5.server.stream.AbstractStream
creationTime, lock, stateFields inherited from interface org.red5.server.api.stream.IClientStream
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the published stream name that this client is consuming.intGet duration in ms as requested by the client.Return connection associated with streamReturn stream idvoidsetBroadcastStreamPublishName(String broadcastStreamPublishName) Sets the broadcasting streams name.voidsetClientBufferDuration(int duration) Set the buffer duration for this stream as requested by the client.voidSetter for stream capable connectionvoidsetStreamId(Number streamId) Setter for stream idMethods inherited from class org.red5.server.stream.AbstractStream
getAbsoluteStartTimeMs, getCodecInfo, getCreationTime, getMetaData, getName, getScope, getState, getStreamAwareHandler, setCodecInfo, setMetaData, setName, setScope, setStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.red5.server.api.stream.IStream
close, getCodecInfo, getCreationTime, getName, getScope, start, stop
-
Field Details
-
streamId
-
broadcastStreamPublishName
Stream name of the broadcasting stream. -
conn
Connection that works with streams -
clientBufferDuration
private int clientBufferDurationBuffer duration in ms as requested by the client
-
-
Constructor Details
-
AbstractClientStream
public AbstractClientStream()
-
-
Method Details
-
setStreamId
Setter for stream id- Parameters:
streamId- Stream id
-
getStreamId
Return stream id- Specified by:
getStreamIdin interfaceIClientStream- Returns:
- Stream id
-
setConnection
Setter for stream capable connection- Parameters:
conn- IStreamCapableConnection object
-
getConnection
Return connection associated with stream- Specified by:
getConnectionin interfaceIClientStream- Returns:
- Stream capable connection object
-
setClientBufferDuration
public void setClientBufferDuration(int duration) Set the buffer duration for this stream as requested by the client.- Specified by:
setClientBufferDurationin interfaceIClientStream- Parameters:
duration- duration in ms the client wants to buffer
-
getClientBufferDuration
public int getClientBufferDuration()Get duration in ms as requested by the client.- Specified by:
getClientBufferDurationin interfaceIClientStream- Returns:
- value
-
setBroadcastStreamPublishName
Sets the broadcasting streams name.- Specified by:
setBroadcastStreamPublishNamein interfaceIClientStream- Parameters:
broadcastStreamPublishName- name of the broadcasting stream
-
getBroadcastStreamPublishName
Returns the published stream name that this client is consuming.- Specified by:
getBroadcastStreamPublishNamein interfaceIClientStream- Returns:
- stream name of stream being consumed
-