|
||||||||||
| 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(MediaSource source)
Joins this media sink with media source. |
void |
connect(Outlet outlet)
Create connection between outlet and this sink. |
void |
disconnect(MediaSource source)
Breaks connection with media source. |
void |
disconnect(Outlet outlet)
Disconnects specified outlet from this sink. |
long |
getBytesReceived()
Shows the number of bytes received by this sink since last start; |
Format[] |
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 |
isMultipleConnectionsAllowed()
Flags which indicates that multiple connections to this sink are allowed. |
boolean |
isStarted()
Gets true if component is able to receive media. |
void |
receive(Buffer buffer)
This methos is called by media source when new media is available |
void |
start()
Starts media processing. |
void |
stop()
Terminates media processing. |
| Methods inherited from interface org.mobicents.media.Component |
|---|
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, setConnection, setEndpoint |
| Method Detail |
|---|
void start()
void stop()
Format[] getFormats()
void connect(MediaSource source)
source - the media source to join with.void disconnect(MediaSource source)
source - the source to disconnect from.boolean isMultipleConnectionsAllowed()
void connect(Outlet outlet)
outlet - the outlet to connect withvoid disconnect(Outlet outlet)
outlet - the outlet to disconnect.
void receive(Buffer buffer)
throws java.io.IOException
buffer - the Buffer object which contains the next portion of media.
java.io.IOExceptionboolean isConnected()
boolean isStarted()
long getPacketsReceived()
long getBytesReceived()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||