|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaSource
Abstracts a read interface that pushes data in the form of Buffer objects. This interface allows a source stream to transfer data in the form of an entire media chunk to the user of this source stream.
| Method Summary | |
|---|---|
long |
getBytesTransmitted()
Shows the number of bytes received by this sink since last start; |
long |
getDuration()
Returns duration of the signal generated by this component if it is known. |
long |
getMediaTime()
Gets the current media time position. |
long |
getPacketsTransmitted()
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 transmitting media. |
void |
setDuration(long duration)
Sets maximum duration for the signal generated by media source |
void |
setInitialDelay(long initialDelay)
Defines the delay between start() call and actual media
streaming beginning. |
void |
setMediaTime(long time)
Assigns media time from which this component should start media data. |
void |
start()
Starts media processing. |
void |
stop()
Terminates media processing. |
| Methods inherited from interface org.mobicents.media.Component |
|---|
activate, clearEndpoint, deactivate, getEndpoint, getId, getName, reset, setEndpoint |
| Method Detail |
|---|
void setInitialDelay(long initialDelay)
start() call and actual media
streaming beginning.
After successful start this value will be changed to zero. The new value
must be assigned before each start.
initialDelay - the value of delay measured in nanoseconds.void start()
void stop()
long getMediaTime()
void setMediaTime(long time)
time - the value measured in nanoseconds.long getDuration()
void setDuration(long duration)
duration - the positive value in nanoseconds.boolean isConnected()
boolean isStarted()
long getPacketsTransmitted()
long getBytesTransmitted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||