public interface MediaSource extends Component
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
Copyright © 2016 TeleStax, Inc.. All Rights Reserved.