org.red5.server.stream
public abstract class AbstractClientStream extends AbstractStream implements IClientStream
creationTime, metaData, state
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD
Constructor and Description |
---|
AbstractClientStream() |
Modifier and Type | Method and 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 stream
|
StreamState |
getState()
Return stream state
|
int |
getStreamId()
Return stream id
|
void |
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 connection
|
void |
setState(StreamState state)
Sets the stream state
|
void |
setStreamId(int streamId)
Setter for stream id
|
getCodecInfo, getCreationTime, getMetaData, getName, getScope, getStreamAwareHandler, setCodecInfo, setName, setScope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCodecInfo, getCreationTime, getName, getScope, start, stop
public void setStreamId(int streamId)
streamId
- Stream idpublic int getStreamId()
getStreamId
in interface IClientStream
public void setConnection(IStreamCapableConnection conn)
conn
- IStreamCapableConnection objectpublic IStreamCapableConnection getConnection()
getConnection
in interface IClientStream
public StreamState getState()
public void setState(StreamState state)
state
- public void setClientBufferDuration(int duration)
setClientBufferDuration
in interface IClientStream
duration
- duration in ms the client wants to bufferpublic int getClientBufferDuration()
getClientBufferDuration
in interface IClientStream
public void setBroadcastStreamPublishName(String broadcastStreamPublishName)
broadcastStreamPublishName
- name of the broadcasting streampublic String getBroadcastStreamPublishName()
getBroadcastStreamPublishName
in interface IClientStream
Copyright © 2006-2012 The Red5 Project