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

All Superinterfaces:
Component, MediaSource, Serializable

public interface Player
extends MediaSource

Author:
kulikov

Method Summary
 void addListener(PlayerListener listener)
           
 void removeListener(PlayerListener listener)
           
 void setURL(String url)
          Assigns URL to play media from.
 
Methods inherited from interface org.mobicents.media.MediaSource
connect, disconnect, getBytesTransmitted, getDuration, getFormats, getMediaTime, getPacketsTransmitted, isConnected, isStarted, setDsp, setDuration, setFormats, setInitialDelay, setMediaTime, start, stop
 
Methods inherited from interface org.mobicents.media.Component
getId, getInterface, getName, reset
 

Method Detail

setURL

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

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

addListener

void addListener(PlayerListener listener)
                 throws TooManyListenersException
Throws:
TooManyListenersException

removeListener

void removeListener(PlayerListener listener)


Copyright © 2011. All Rights Reserved.