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
public abstract class AbstractClientStream extends AbstractStream implements IClientStream
Abstract base for client streams
-
-
Field Summary
-
Fields inherited from class org.red5.server.stream.AbstractStream
codecInfo, creationTime, metaData, startTime, state, stateListeners
-
Fields inherited from interface org.red5.server.api.stream.IClientStream
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD
-
-
Constructor Summary
Constructors Constructor Description AbstractClientStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBroadcastStreamPublishName()
Returns the published stream name that this client is consuming.int
getClientBufferDuration()
Get duration in ms as requested by the client.IStreamCapableConnection
getConnection()
Return connection associated with streamNumber
getStreamId()
Return stream idvoid
setBroadcastStreamPublishName(String broadcastStreamPublishName)
Sets the broadcasting streams name.void
setClientBufferDuration(int duration)
Set the buffer duration for this stream as requested by the client.void
setConnection(IStreamCapableConnection conn)
Setter for stream capable connectionvoid
setStreamId(Number streamId)
Setter for stream id-
Methods inherited from class org.red5.server.stream.AbstractStream
addStateChangeListener, fireStateChange, getCodecInfo, getCreationTime, getMetaData, getName, getScope, getStartTime, getState, getStreamAwareHandler, removeStateChangeListener, setCodecInfo, setMetaData, setName, setScope, setState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.red5.server.api.stream.IStream
close, getCodecInfo, getCreationTime, getName, getScope, getStartTime, start, stop
-
-
-
-
Method Detail
-
setStreamId
public void setStreamId(Number streamId)
Setter for stream id- Parameters:
streamId
- Stream id
-
getStreamId
public Number getStreamId()
Return stream id- Specified by:
getStreamId
in interfaceIClientStream
- Returns:
- Stream id
-
setConnection
public void setConnection(IStreamCapableConnection conn)
Setter for stream capable connection- Parameters:
conn
- IStreamCapableConnection object
-
getConnection
public IStreamCapableConnection getConnection()
Return connection associated with stream- Specified by:
getConnection
in 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:
setClientBufferDuration
in 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:
getClientBufferDuration
in interfaceIClientStream
- Returns:
- value
-
setBroadcastStreamPublishName
public void setBroadcastStreamPublishName(String broadcastStreamPublishName)
Sets the broadcasting streams name.- Specified by:
setBroadcastStreamPublishName
in interfaceIClientStream
- Parameters:
broadcastStreamPublishName
- name of the broadcasting stream
-
getBroadcastStreamPublishName
public String getBroadcastStreamPublishName()
Returns the published stream name that this client is consuming.- Specified by:
getBroadcastStreamPublishName
in interfaceIClientStream
- Returns:
- stream name of stream being consumed
-
-