org.red5.server.stream
Class AbstractClientStream

java.lang.Object
  extended by org.red5.server.stream.AbstractStream
      extended by org.red5.server.stream.AbstractClientStream
All Implemented Interfaces:
IBWControllable, IClientStream, IStream
Direct Known Subclasses:
ClientBroadcastStream, PlaylistSubscriberStream

public abstract class AbstractClientStream
extends AbstractStream
implements IClientStream

Abstract base for client streams


Nested Class Summary
 
Nested classes/interfaces inherited from class org.red5.server.stream.AbstractStream
AbstractStream.State
 
Field Summary
 
Fields inherited from class org.red5.server.stream.AbstractStream
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
 IBandwidthConfigure getBandwidthConfigure()
          Return stream bandwidth configuration
 int getClientBufferDuration()
          Get duration in ms as requested by the client.
 IStreamCapableConnection getConnection()
          Return connection associated with stream
 IBWControllable getParentBWControllable()
          Return parent flow controllable object (bandwidth preferences holder)
 int getStreamId()
          Return stream id
 void setBandwidthConfigure(IBandwidthConfigure config)
          Setter for bandwidth config
 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 setStreamId(int streamId)
          Setter for stream id
 
Methods inherited from class org.red5.server.stream.AbstractStream
getCodecInfo, 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, getName, getScope, start, stop
 

Constructor Detail

AbstractClientStream

public AbstractClientStream()
Method Detail

getStreamId

public int getStreamId()
Return stream id

Specified by:
getStreamId in interface IClientStream
Returns:
Stream id

getConnection

public IStreamCapableConnection getConnection()
Return connection associated with stream

Specified by:
getConnection in interface IClientStream
Returns:
Stream capable connection object

getBandwidthConfigure

public IBandwidthConfigure getBandwidthConfigure()
Return stream bandwidth configuration

Specified by:
getBandwidthConfigure in interface IBWControllable
Returns:
Bandwidth config

setBandwidthConfigure

public void setBandwidthConfigure(IBandwidthConfigure config)
Setter for bandwidth config

Specified by:
setBandwidthConfigure in interface IBWControllable
Parameters:
config - Bandwidth config

getParentBWControllable

public IBWControllable getParentBWControllable()
Return parent flow controllable object (bandwidth preferences holder)

Specified by:
getParentBWControllable in interface IBWControllable
Returns:
IFlowControllable object

setStreamId

public void setStreamId(int streamId)
Setter for stream id

Parameters:
streamId - Stream id

setConnection

public void setConnection(IStreamCapableConnection conn)
Setter for stream capable connection

Parameters:
conn - IStreamCapableConnection object

setClientBufferDuration

public void setClientBufferDuration(int duration)
Set the buffer duration for this stream as requested by the client.

Specified by:
setClientBufferDuration in interface IClientStream
Parameters:
duration - duration in ms the client wants to buffer

getClientBufferDuration

public int getClientBufferDuration()
Get duration in ms as requested by the client.

Returns:
value


Copyright © 2006-2009 The Red5 Project