|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.mediaplayer.audio.gsm.GsmTrackImpl
public class GsmTrackImpl
| Constructor Summary | |
|---|---|
GsmTrackImpl(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. |
int |
getPeriod()
|
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. |
void |
setPeriod(int period)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GsmTrackImpl(java.net.URL url)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException,
org.mobicents.media.format.UnsupportedFormatException
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
org.mobicents.media.format.UnsupportedFormatException| Method Detail |
|---|
public void setPeriod(int period)
public int getPeriod()
public long getMediaTime()
Track
getMediaTime in interface Trackpublic void setMediaTime(long timestamp)
Track
setMediaTime in interface Tracktimestamp - the value of the time in milliscondspublic long getDuration()
Track
getDuration in interface Track
public void process(org.mobicents.media.Buffer buffer)
throws java.io.IOException
Track
process in interface Trackjava.io.IOExceptionpublic void close()
Track
close in interface Trackpublic org.mobicents.media.Format getFormat()
Track
getFormat in interface Track
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||