public interface Player
Modifier and Type | Interface and Description |
---|---|
static class |
Player.State |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the opened file.
|
Core |
getCore()
Returns the #LinphoneCore object managing this player's call, if any.
|
int |
getCurrentPosition()
Get the current position in the opened file.
|
int |
getDuration()
Get the duration of the opened file.
|
Player.State |
getState()
Get the current state of a player.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
open(java.lang.String filename)
Open a file for playing.
|
void |
pause()
Pause the playing of a file.
|
void |
seek(int timeMs)
Seek in an opened file.
|
void |
setListener(PlayerListener listener) |
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
void |
start()
Start playing a file that has been opened with linphone_player_open().
|
Core getCore()
int getCurrentPosition()
int getDuration()
Player.State getState()
void close()
void open(java.lang.String filename)
void pause()
void seek(int timeMs)
void start()
void setListener(PlayerListener listener)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()