org.mobicents.media.server.impl.resource.mediaplayer.video
Class MpegVideoTrackImpl

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.video.MpegVideoTrackImpl
All Implemented Interfaces:
Track

public class MpegVideoTrackImpl
extends java.lang.Object
implements Track

Author:
kulikov

Constructor Summary
MpegVideoTrackImpl(java.net.URL url)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MpegVideoTrackImpl

public MpegVideoTrackImpl(java.net.URL url)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getFormat

public org.mobicents.media.Format getFormat()
Description copied from interface: Track
Gets the format of this audio stream.

Specified by:
getFormat in interface Track
Returns:
the format object.

process

public void process(org.mobicents.media.Buffer buffer)
             throws java.io.IOException
Description copied from interface: Track
Fills buffer with next portion of media data.

Specified by:
process in interface Track
Throws:
java.io.IOException

close

public void close()
Description copied from interface: Track
Closes this stream.

Specified by:
close in interface Track

getMediaTime

public long getMediaTime()
Description copied from interface: Track
Gets the current media time.

Specified by:
getMediaTime in interface Track
Returns:
time value expressed in milliseconds.

setMediaTime

public void setMediaTime(long timestamp)
Description copied from interface: Track
Rewinds track to the specified timestamp.

Specified by:
setMediaTime in interface Track
Parameters:
timestamp - the value of the time in millisconds

getDuration

public long getDuration()
Description copied from interface: Track
Gets duration of this track.

Specified by:
getDuration in interface Track
Returns:
duration expressed in milliseconds.


Copyright © 2010. All Rights Reserved.