org.mobicents.media.server.impl.resource.audio.soundcard
Class PlayerImpl
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSink
org.mobicents.media.server.impl.resource.audio.soundcard.PlayerImpl
- All Implemented Interfaces:
- java.io.Serializable, org.mobicents.media.Component, org.mobicents.media.MediaSink
public class PlayerImpl
- extends AbstractSink
PlayerImpl is to play audio to hardware
- Author:
- amit bhayani
- See Also:
- Serialized Form
|
Constructor Summary |
PlayerImpl(java.lang.String name)
|
|
Method Summary |
org.mobicents.media.Format[] |
getFormats()
|
boolean |
isAcceptable(org.mobicents.media.Format format)
|
void |
onMediaTransfer(org.mobicents.media.Buffer buffer)
This methos is called when new portion of media arrives. |
void |
start()
(Non Java-doc). |
void |
stop()
(Non Java-doc). |
| Methods inherited from class org.mobicents.media.server.impl.AbstractSink |
assignPreffered, connect, connect, disconnect, disconnect, failed, getBytesReceived, getInterface, getPacketsReceived, getPreffered, isConnected, isMultipleConnectionsAllowed, isStarted, receive, resetStats, selectPreffered, started, stopped |
| Methods inherited from class org.mobicents.media.server.impl.BaseComponent |
addListener, getConnection, getEndpoint, getFormat, getId, getName, removeListener, sendEvent, setConnection, setEndpoint, subset, 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.Component |
addListener, getConnection, getEndpoint, getFormat, getId, getName, removeListener, setConnection, setEndpoint |
PlayerImpl
public PlayerImpl(java.lang.String name)
onMediaTransfer
public void onMediaTransfer(org.mobicents.media.Buffer buffer)
throws java.io.IOException
- Description copied from class:
AbstractSink
- This methos is called when new portion of media arrives.
- Specified by:
onMediaTransfer in class AbstractSink
- Parameters:
buffer - the new portion of media data.
- Throws:
java.io.IOException
getFormats
public org.mobicents.media.Format[] getFormats()
isAcceptable
public boolean isAcceptable(org.mobicents.media.Format format)
stop
public void stop()
- Description copied from class:
AbstractSink
- (Non Java-doc).
- Specified by:
stop in interface org.mobicents.media.MediaSink- Overrides:
stop in class AbstractSink
- See Also:
MediaSink.stop().
start
public void start()
- Description copied from class:
AbstractSink
- (Non Java-doc).
- Specified by:
start in interface org.mobicents.media.MediaSink- Overrides:
start in class AbstractSink
- See Also:
MediaSink.start().
Copyright © 2010. All Rights Reserved.