org.mobicents.media.server.spi
Interface SyncSource

All Known Subinterfaces:
Timer

public interface SyncSource

The component which is a source of synchronization for other components. The example of source of synchronization is a Timer. The another example is a source component which is synchronized from stream.

Author:
kulikov

Method Summary
 long getTimestamp()
          Gets the absolute timestamp value.
 void start()
          Starts this component.
 void stop()
          Stops this component.
 void sync(MediaSource mediaSource)
          Synchronize the process of media content processing from this timer.
 void sync(Task task)
           
 void unsync(MediaSource mediaSource)
          Disable synchronization process.
 

Method Detail

sync

void sync(MediaSource mediaSource)
Synchronize the process of media content processing from this timer.

Parameters:
mediaSource - the media sources to synchronize.

sync

void sync(Task task)

unsync

void unsync(MediaSource mediaSource)
Disable synchronization process.

Parameters:
mediaSource - the media source component.

getTimestamp

long getTimestamp()
Gets the absolute timestamp value.

Returns:
the timestamp value in milliseconds.

start

void start()
Starts this component.


stop

void stop()
Stops this component.



Copyright © 2010. All Rights Reserved.