org.red5.server.stream
public abstract class AbstractStream extends Object implements IStream
IStream
Modifier and Type | Field and Description |
---|---|
protected long |
creationTime
Timestamp the stream was created.
|
protected Notify |
metaData
Stores the streams metadata
|
protected StreamState |
state
Current state
|
Constructor and Description |
---|
AbstractStream() |
Modifier and Type | Method and Description |
---|---|
IStreamCodecInfo |
getCodecInfo()
Return codec information
|
long |
getCreationTime()
Returns timestamp at which the stream was created.
|
Notify |
getMetaData()
Returns the metadata for the associated stream, if it exists.
|
String |
getName()
Return stream name
|
IScope |
getScope()
Return scope
|
protected IStreamAwareScopeHandler |
getStreamAwareHandler()
Return stream aware scope handler or null if scope is null
|
void |
setCodecInfo(IStreamCodecInfo codecInfo)
Setter for codec info
|
void |
setName(String name)
Setter for name
|
void |
setScope(IScope scope)
Setter for scope
|
protected StreamState state
protected Notify metaData
protected long creationTime
public String getName()
public IStreamCodecInfo getCodecInfo()
getCodecInfo
in interface IStream
public Notify getMetaData()
public IScope getScope()
public long getCreationTime()
getCreationTime
in interface IStream
public void setName(String name)
name
- Stream namepublic void setCodecInfo(IStreamCodecInfo codecInfo)
codecInfo
- Codec infopublic void setScope(IScope scope)
scope
- Scopeprotected IStreamAwareScopeHandler getStreamAwareHandler()
Copyright © 2006-2012 The Red5 Project