org.mobicents.media.server.spi.resource
Interface Player

All Superinterfaces:
Component, java.io.Serializable
All Known Subinterfaces:
TTSEngine

public interface Player
extends Component

Author:
amit bhayani

Method Summary
 void setURL(java.lang.String url)
          Assigns URL to play media from.
 void start()
          Starts media processing.
 void stop()
          Terminates media processing.
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, setConnection, setEndpoint
 

Method Detail

setURL

void setURL(java.lang.String url)
            throws java.io.IOException,
                   ResourceUnavailableException
Assigns URL to play media from.

Parameters:
url - the url to media file.
Throws:
java.io.IOException - if file can not be read
java.io.ResourceUnavailableException - if file is not supported.
ResourceUnavailableException

start

void start()
Starts media processing.


stop

void stop()
Terminates media processing.



Copyright © 2010. All Rights Reserved.