NaCl Player API
NaCl Player API Documentation
Samsung::NaClPlayer::MediaEventsListener Class Referenceabstract

Listener for receiving player or playback related events. More...

#include <media_events_listener.h>

Public Member Functions

virtual void OnTimeUpdate (TimeTicks time)=0
virtual void OnEnded ()=0
 Played clip has ended.
virtual void OnError (MediaPlayerError error)=0

Protected Member Functions

 MediaEventsListener ()

Detailed Description

Listener for receiving player or playback related events.

Definition at line 19 of file media_events_listener.h.

Constructor & Destructor Documentation

◆ MediaEventsListener()

Samsung::NaClPlayer::MediaEventsListener::MediaEventsListener ( )

The default constructor which creates listener not attached to the player

Member Function Documentation

◆ OnError()

virtual void Samsung::NaClPlayer::MediaEventsListener::OnError ( MediaPlayerError  error)
pure virtual

Error during playback has occurred.

[in]errorAn error code signalizing type of occurred error.

◆ OnTimeUpdate()

virtual void Samsung::NaClPlayer::MediaEventsListener::OnTimeUpdate ( TimeTicks  time)
pure virtual

Event sent periodically during clip playback and indicates playback progress.

Event will be sent at least twice per second.

[in]timecurrent media time.

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