public interface Player extends MediaSource
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PlayerListener listener) |
void |
clearAllListeners() |
void |
removeListener(PlayerListener listener) |
void |
setURL(String url)
Assigns URL to play media from.
|
getBytesTransmitted, getDuration, getMediaTime, getPacketsTransmitted, isConnected, isStarted, setDuration, setInitialDelay, setMediaTime, start, stopactivate, clearEndpoint, deactivate, getEndpoint, getId, getName, reset, setEndpointvoid setURL(String url) throws MalformedURLException, ResourceUnavailableException
url - the url to media file.IOException - if file can not be readjava.io.ResourceUnavailableException - if file is not supported.MalformedURLExceptionResourceUnavailableExceptionvoid addListener(PlayerListener listener) throws TooManyListenersException
TooManyListenersExceptionvoid removeListener(PlayerListener listener)
void clearAllListeners()
Copyright © 2015 TeleStax, Inc.. All Rights Reserved.