|
||||||||||
| 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(Inlet inlet)
Connects this source with specified inlet. |
void |
connect(MediaSink sink)
Joins this source with media sink. |
void |
disconnect(Inlet inlet)
Disconnects this source with specified inlet. |
void |
disconnect(MediaSink sink)
Drops connection between this source and media sink. |
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. |
Format[] |
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. |
SyncSource |
getSyncSource()
Gets the source used for synchronization of processing |
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 transmitting media. |
void |
setDuration(long duration)
Sets maximum duration for the signal generated by media source |
void |
setMediaTime(long time)
Assigns media time from which this component should start media data. |
void |
setSyncSource(SyncSource syncSource)
Assign the source for synchronization of the processing. |
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 |
| Methods inherited from interface org.mobicents.media.server.spi.clock.Task |
|---|
cancel, isActive, perform |
| Method Detail |
|---|
void start()
void stop()
long getMediaTime()
void setMediaTime(long time)
time - the value measured in millesconds.long getDuration()
void setDuration(long duration)
duration - the positive value in milliseconds.SyncSource getSyncSource()
void setSyncSource(SyncSource syncSource)
syncSource - the source of synchronization.void connect(MediaSink sink)
sink - the media sink to join with.void disconnect(MediaSink sink)
sink - the sink to disconnect.boolean isMultipleConnectionsAllowed()
void connect(Inlet inlet)
inlet - the inlet to connect with.void disconnect(Inlet inlet)
inlet - the inlet to disconnect from.Format[] getFormats()
boolean isConnected()
boolean isStarted()
long getPacketsTransmitted()
long getBytesTransmitted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||