Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
|
#include <media_events_listener_samsung.h>
Public Member Functions | |
virtual void | OnTimeUpdate (PP_TimeTicks time) |
virtual void | OnEnded () |
Played clip has ended. | |
virtual void | OnError (PP_MediaPlayerError error) |
Protected Member Functions | |
MediaEventsListener_Samsung () | |
MediaEventsListener_Samsung (MediaPlayer_Samsung *player) | |
Constructor which creates listener attached to the |player|. | |
void | AttachTo (MediaPlayer_Samsung *player) |
Attaches listener to the |player|. | |
Listener for receiving player or playback related events.
All event methods will be called on the same thread. If this class was created on a thread with a running message loop, the event methods will run on this thread. Otherwise, they will run on the main thread.
|
protected |
The default constructor which creates listener not attached to the player
|
virtual |
Error during playback has occurred.
[in] | error | An error code signalizing type of occurred error. |
|
virtual |
Event sent periodically during clip playback and indicates playback progress.
Event will be sent at least twice per second.
[in] | time | current media time. |