public interface LinphonePlayer
Modifier and Type | Interface and Description |
---|---|
static interface |
LinphonePlayer.Listener
Listener for Linphone players
|
static class |
LinphonePlayer.State
States that the player can be
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close a file
|
int |
getCurrentPosition()
Get the position of the playback
|
int |
getDuration()
Get the duration of the media
|
LinphonePlayer.State |
getState()
Get the state of the player
|
int |
open(String filename,
LinphonePlayer.Listener listener)
Open a file
|
int |
pause()
Get playback paused
|
int |
seek(int timeMs)
Go to a specific position in the timeline
|
int |
start()
Start playback
|
int open(String filename, LinphonePlayer.Listener listener)
filename
- Name of the file to openint start()
int pause()
int seek(int timeMs)
timeMs
- Time in millisecondsLinphonePlayer.State getState()
int getDuration()
int getCurrentPosition()
void close()