|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaSink
Implements the media consumer.
| Method Summary | |
|---|---|
void |
connect(Pipe pipe)
Joins this media sink with media source. |
void |
disconnect(Pipe pipe)
Breaks connection with media source. |
long |
getBytesReceived()
Shows the number of bytes received by this sink since last start; |
Formats |
getFormats()
Get possible formats which this consumer can handle. |
long |
getPacketsReceived()
Shows the number of packets received by this medis sink since last start. |
boolean |
isConnected()
Gets the state of the component. |
boolean |
isStarted()
Gets true if component is able to receive media. |
void |
setDsp(Processor dsp)
Assigns digital signaling processor. |
void |
setFormats(Formats formats)
Set formats for streaming. |
void |
start()
Starts media processing. |
void |
stop()
Terminates media processing. |
| Methods inherited from interface org.mobicents.media.Component |
|---|
getId, getInterface, getName, reset |
| Method Detail |
|---|
void start()
void stop()
Formats getFormats()
void setDsp(Processor dsp)
dsp - processor instance.
void setFormats(Formats formats)
throws FormatNotSupportedException
formats - the collection of formats.
FormatNotSupportedExceptionvoid connect(Pipe pipe)
source - the media source to join with.void disconnect(Pipe pipe)
source - the source to disconnect from.boolean isConnected()
boolean isStarted()
long getPacketsReceived()
long getBytesReceived()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||