Listener class designed to handle player and playback related events from the platform. MediaPlayerListener receives event's information and passes it through the communication channel using MessageSender.
More...
#include <player_listeners.h>
Listener class designed to handle player and playback related events from the platform. MediaPlayerListener receives event's information and passes it through the communication channel using MessageSender.
Definition at line 82 of file player_listeners.h.
Creates a MediaPlayerListener object.
- Parameters
-
| [in] | message_sender | An object which will be used to send messages based on received subtitle events through the communication channel |
Definition at line 88 of file player_listeners.h.
| void MediaPlayerListener::OnEnded |
( |
| ) |
|
|
override |
An event handler method, called when the player reaches the end of the stream. MediaPlayerListener passes information about EOS event through the communication channel using MessageSender.
| void MediaPlayerListener::OnError |
( |
Samsung::NaClPlayer::MediaPlayerError |
error | ) |
|
|
override |
An event handler method, called when any player-related error occurs. MediaPlayerListener passes information about it through the communication channel using MessageSender.
- Parameters
-
| [in] | error | Caught error code. |
| void MediaPlayerListener::OnTimeUpdate |
( |
Samsung::NaClPlayer::TimeTicks |
time | ) |
|
|
override |
An event handler method, called periodically during clip playback and indicates a playback progress. MediaPlayerListener passes information about about playback progress through the communication channel using MessageSender.
- Parameters
-
| [in] | time | Current playback time. |
The documentation for this class was generated from the following file: