org.mobicents.media.server.impl.resource.mediaplayer
Interface Track

All Known Implementing Classes:
AMRTrackImpl, GsmTrackImpl, MpegVideoTrackImpl, TtsTrackImpl, WavTrackImpl

public interface Track

Author:
kulikov

Method Summary
 void close()
          Closes this stream.
 long getDuration()
          Gets duration of this track.
 org.mobicents.media.Format getFormat()
          Gets the format of this audio stream.
 long getMediaTime()
          Gets the current media time.
 void process(org.mobicents.media.Buffer buffer)
          Fills buffer with next portion of media data.
 void setMediaTime(long timestamp)
          Rewinds track to the specified timestamp.
 

Method Detail

getFormat

org.mobicents.media.Format getFormat()
Gets the format of this audio stream.

Returns:
the format object.

getMediaTime

long getMediaTime()
Gets the current media time.

Returns:
time value expressed in milliseconds.

setMediaTime

void setMediaTime(long timestamp)
Rewinds track to the specified timestamp.

Parameters:
timestamp - the value of the time in millisconds

getDuration

long getDuration()
Gets duration of this track.

Returns:
duration expressed in milliseconds.

process

void process(org.mobicents.media.Buffer buffer)
             throws java.io.IOException
Fills buffer with next portion of media data.

Parameters:
buffer -
Throws:
java.io.IOException

close

void close()
Closes this stream.



Copyright © 2010. All Rights Reserved.