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

All Superinterfaces:
Component, Serializable
All Known Subinterfaces:
TTSEngine

public interface Player
extends Component

Author:
amit bhayani

Method Summary
 void setInitialDelay(long delay)
           
 void setMaxDuration(long duration)
           
 void setMediaTime(long timestamp)
           
 void setURL(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
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

start

void start()
Starts media processing.


stop

void stop()
Terminates media processing.


setMaxDuration

void setMaxDuration(long duration)

setMediaTime

void setMediaTime(long timestamp)

setInitialDelay

void setInitialDelay(long delay)


Copyright © 2011. All Rights Reserved.