|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.stream.AbstractStream
org.red5.server.stream.AbstractClientStream
public abstract class AbstractClientStream
Abstract base for client streams
| Field Summary |
|---|
| Fields inherited from class org.red5.server.stream.AbstractStream |
|---|
creationTime, metaData, state |
| Fields inherited from interface org.red5.server.api.stream.IClientStream |
|---|
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD |
| Constructor Summary | |
|---|---|
AbstractClientStream()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.red5.server.stream.AbstractStream |
|---|
getCodecInfo, getCreationTime, getMetaData, getName, getScope, getStreamAwareHandler, setCodecInfo, setName, setScope |
| 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, start, stop |
| Constructor Detail |
|---|
public AbstractClientStream()
| Method Detail |
|---|
public void setStreamId(int streamId)
streamId - Stream idpublic int getStreamId()
getStreamId in interface IClientStreampublic void setConnection(IStreamCapableConnection conn)
conn - IStreamCapableConnection objectpublic IStreamCapableConnection getConnection()
getConnection in interface IClientStreampublic StreamState getState()
public void setState(StreamState state)
state - public void setClientBufferDuration(int duration)
setClientBufferDuration in interface IClientStreamduration - duration in ms the client wants to bufferpublic int getClientBufferDuration()
getClientBufferDuration in interface IClientStreampublic void setBroadcastStreamPublishName(String broadcastStreamPublishName)
broadcastStreamPublishName - name of the broadcasting streampublic String getBroadcastStreamPublishName()
getBroadcastStreamPublishName in interface IClientStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||