mediaplayer interface
More...
#include <media_player_interface.hh>
mediaplayer interface
- See also
- IMediaPlayerListener
◆ addListener()
Add the Listener object.
- Parameters
-
[in] | listener | listener object |
◆ removeListener()
Remove the Listener object.
- Parameters
-
[in] | listener | listener object |
◆ setAudioAttribute()
Sets the audio attribute in the media player.
- Parameters
-
◆ setSource()
virtual bool NuguClientKit::IMediaPlayer::setSource |
( |
const std::string & |
url | ) |
|
|
pure virtual |
Sets the playurl of the media content to play in the media player.
- Parameters
-
◆ seek()
virtual bool NuguClientKit::IMediaPlayer::seek |
( |
int |
sec | ) |
|
|
pure virtual |
Request the media player to move the current content section.
- Parameters
-
[in] | sec | content's position. It is moved from the current media position. |
◆ position()
virtual int NuguClientKit::IMediaPlayer::position |
( |
| ) |
|
|
pure virtual |
Get current position information of the media content from the media player.
- Returns
- media content's current position
◆ setPosition()
virtual bool NuguClientKit::IMediaPlayer::setPosition |
( |
int |
position | ) |
|
|
pure virtual |
Set current position of the media content to the media player.
- Parameters
-
[in] | position | media content's position. |
◆ loop()
virtual bool NuguClientKit::IMediaPlayer::loop |
( |
| ) |
|
|
pure virtual |
Get loop information of the media content from the media player.
- Returns
- media content's loop
◆ setLoop()
virtual void NuguClientKit::IMediaPlayer::setLoop |
( |
bool |
loop | ) |
|
|
pure virtual |
Set loop of the media content to the media player.
- Parameters
-
[in] | loop | media content's loop |
◆ duration()
virtual int NuguClientKit::IMediaPlayer::duration |
( |
| ) |
|
|
pure virtual |
Get duration information of the media content from the media player.
- Returns
- media content's duration
◆ setDuration()
virtual bool NuguClientKit::IMediaPlayer::setDuration |
( |
int |
duration | ) |
|
|
pure virtual |
Set duration of the media content to the media player.
- Parameters
-
[in] | duration | media content's duration. |
◆ volume()
virtual int NuguClientKit::IMediaPlayer::volume |
( |
| ) |
|
|
pure virtual |
Get volume information of the media content from the media player.
- Returns
- media content's duration
◆ setVolume()
virtual bool NuguClientKit::IMediaPlayer::setVolume |
( |
int |
volume | ) |
|
|
pure virtual |
Set volume of the media content to the media player.
- Parameters
-
[in] | volume | media content's volume. |
◆ mute()
virtual bool NuguClientKit::IMediaPlayer::mute |
( |
| ) |
|
|
pure virtual |
Get mute information of the media content from the media player.
- Returns
- media content's mute
◆ setMute()
virtual bool NuguClientKit::IMediaPlayer::setMute |
( |
bool |
mute | ) |
|
|
pure virtual |
Set mute of the media content to the media player.
- Parameters
-
[in] | mute | media content's mute. |
◆ isPlaying()
virtual bool NuguClientKit::IMediaPlayer::isPlaying |
( |
| ) |
|
|
pure virtual |
Check whether the media player is playing media content.
- Returns
- Play or not
◆ state()
Get state of the media player.
- Returns
- media player's state
◆ setState()
Set state of the media player.
- Parameters
-
[in] | state | media player's state |
◆ stateString()
virtual std::string NuguClientKit::IMediaPlayer::stateString |
( |
MediaPlayerState |
state | ) |
|
|
pure virtual |
Get state name of the media player.
- Parameters
-
[in] | state | media player's state |
- Returns
- media player's state name
◆ url()
virtual std::string NuguClientKit::IMediaPlayer::url |
( |
| ) |
|
|
pure virtual |
Get url of media content from the media player.
- Returns
- media content's url
The documentation for this class was generated from the following file: