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, stopvoid 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 © 2016 TeleStax, Inc.. All Rights Reserved.