|
||||||||||
| 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 | |
|---|---|
void |
connect(Pipe pipe)
Joins this source with pipe. |
void |
disconnect(Pipe pipe)
Disconnects this source from pipe. |
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. |
Formats |
getFormats()
Get possible formats in which this source can stream media. |
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 |
setDsp(Processor dsp)
Assigns digital signaling processor. |
void |
setDuration(long duration)
Sets maximum duration for the signal generated by media source |
void |
setFormats(Formats formats)
Set formats for streaming. |
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 |
|---|
getId, getInterface, getName, reset |
| 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.void connect(Pipe pipe)
pipe - the pipe to connect tovoid disconnect(Pipe pipe)
pipe - the pipe to be disconnected.Formats getFormats()
void setFormats(Formats formats)
throws FormatNotSupportedException
formats - the collection of formats.
FormatNotSupportedExceptionvoid setDsp(Processor dsp)
dsp - processor instance.boolean isConnected()
boolean isStarted()
long getPacketsTransmitted()
long getBytesTransmitted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||