org.mobicents.media.server.impl.resource.audio
Class AudioPlayerImpl
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSource
org.mobicents.media.server.impl.resource.audio.AudioPlayerImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, org.mobicents.media.Component, org.mobicents.media.MediaSource, org.mobicents.media.server.spi.resource.AudioPlayer
public class AudioPlayerImpl
- extends AbstractSource
- implements org.mobicents.media.server.spi.resource.AudioPlayer, java.lang.Runnable
- Author:
- Oleg Kulikov
- See Also:
- Serialized Form
|
Constructor Summary |
AudioPlayerImpl(java.lang.String name,
org.mobicents.media.server.spi.Timer timer)
Creates new instance of the Audio player. |
|
Method Summary |
void |
afterStop()
This method is called immediately after processing termination. |
void |
beforeStart()
This method is called just before start. |
void |
evolve(org.mobicents.media.Buffer buffer,
long seq)
This method must be overriden by concrete media source. |
org.mobicents.media.Format[] |
getFormats()
|
java.lang.String |
getURL()
(Non Java-doc.) |
void |
setURL(java.lang.String url)
(Non Java-doc.) |
| Methods inherited from class org.mobicents.media.server.impl.AbstractSource |
completed, connect, connect, disconnect, disconnect, failed, getBytesTransmitted, getPacketsTransmitted, getSupportedFormatList, getSyncSource, isConnected, isMultipleConnectionsAllowed, isStarted, resetStats, run, setSyncSource, start, started, stop, stopped |
| Methods inherited from class org.mobicents.media.server.impl.BaseComponent |
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, setConnection, setEndpoint, setResourceType, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mobicents.media.MediaSource |
connect, connect, disconnect, disconnect, getBytesTransmitted, getPacketsTransmitted, getSyncSource, isConnected, isMultipleConnectionsAllowed, isStarted, setSyncSource |
| Methods inherited from interface org.mobicents.media.Component |
addListener, getConnection, getEndpoint, getId, getName, removeListener, resetStats, setConnection, setEndpoint, start, stop |
| Methods inherited from interface java.lang.Runnable |
run |
AudioPlayerImpl
public AudioPlayerImpl(java.lang.String name,
org.mobicents.media.server.spi.Timer timer)
- Creates new instance of the Audio player.
- Parameters:
name - the name of the AudioPlayer to be created.timer - source of synchronization.
setURL
public void setURL(java.lang.String url)
- (Non Java-doc.)
- Specified by:
setURL in interface org.mobicents.media.server.spi.resource.AudioPlayer
- See Also:
AudioPlayer.setURL(java.lang.String)
getURL
public java.lang.String getURL()
- (Non Java-doc.)
- Specified by:
getURL in interface org.mobicents.media.server.spi.resource.AudioPlayer
- See Also:
AudioPlayer.getURL()
beforeStart
public void beforeStart()
throws java.lang.Exception
- Description copied from class:
AbstractSource
- This method is called just before start.
The descendant classes can verride this method and put additional logic
- Overrides:
beforeStart in class AbstractSource
- Throws:
java.lang.Exception
afterStop
public void afterStop()
- Description copied from class:
AbstractSource
- This method is called immediately after processing termination.
- Overrides:
afterStop in class AbstractSource
evolve
public void evolve(org.mobicents.media.Buffer buffer,
long seq)
- Description copied from class:
AbstractSource
- This method must be overriden by concrete media source. The media have to fill buffer with media data and
attributes.
- Specified by:
evolve in class AbstractSource
- Parameters:
buffer - the buffer object for media.seq - the number of timer ticks from the begining.
getFormats
public org.mobicents.media.Format[] getFormats()
- Specified by:
getFormats in interface org.mobicents.media.MediaSource
Copyright © 2009. All Rights Reserved.