Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::MediaEventsListener_Samsung Class Reference

#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|.
 

Detailed Description

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.

Constructor & Destructor Documentation

pp::MediaEventsListener_Samsung::MediaEventsListener_Samsung ( )
protected

The default constructor which creates listener not attached to the player

Member Function Documentation

virtual void pp::MediaEventsListener_Samsung::OnError ( PP_MediaPlayerError  error)
virtual

Error during playback has occurred.

Parameters
[in]errorAn error code signalizing type of occurred error.
virtual void pp::MediaEventsListener_Samsung::OnTimeUpdate ( PP_TimeTicks  time)
virtual

Event sent periodically during clip playback and indicates playback progress.

Event will be sent at least twice per second.

Parameters
[in]timecurrent media time.

The documentation for this class was generated from the following file: