Pepper_47_C++_interfaces
Public Member Functions | Protected Member Functions | List of all members
pp::SubtitleListener_Samsung Class Referenceabstract

#include <subtitle_listener_samsung.h>

Collaboration diagram for pp::SubtitleListener_Samsung:
Collaboration graph

Public Member Functions

virtual ~SubtitleListener_Samsung ()
 
virtual void OnShowSubtitle (PP_TimeDelta duration, const char *text)=0
 

Protected Member Functions

 SubtitleListener_Samsung ()
 
 SubtitleListener_Samsung (MediaPlayer_Samsung *player)
 Constructor which creates listener attached to the |player|. More...
 
void AttachTo (MediaPlayer_Samsung *player)
 Attaches listener to the |player|. More...
 

Detailed Description

Listener for receiving subtitle updates provided by the player's internal subtitle parser. This listener will be notified every time active and visible text track contains a subtitle that should be displayed at the current playback position.

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.

Definition at line 27 of file subtitle_listener_samsung.h.

Constructor & Destructor Documentation

pp::SubtitleListener_Samsung::~SubtitleListener_Samsung ( )
virtual

Definition at line 39 of file subtitle_listener_samsung.cc.

pp::SubtitleListener_Samsung::SubtitleListener_Samsung ( )
protected

The default constructor which creates listener not attached to the player

Definition at line 43 of file subtitle_listener_samsung.cc.

pp::SubtitleListener_Samsung::SubtitleListener_Samsung ( MediaPlayer_Samsung player)
explicitprotected

Constructor which creates listener attached to the |player|.

Definition at line 46 of file subtitle_listener_samsung.cc.

References AttachTo().

Member Function Documentation

void pp::SubtitleListener_Samsung::AttachTo ( MediaPlayer_Samsung player)
protected

Attaches listener to the |player|.

Definition at line 51 of file subtitle_listener_samsung.cc.

References pp::Resource::pp_resource().

Referenced by SubtitleListener_Samsung().

virtual void pp::SubtitleListener_Samsung::OnShowSubtitle ( PP_TimeDelta  duration,
const char *  text 
)
pure virtual

Event sent when a subtitle should be displayed.

Parameters
[in]durationDuration for which the text should be displayed.
[in]textThe UTF-8 encoded string that contains a subtitle text that should be displayed. Please note text encoding will be UTF-8 independently from the source subtitle file encoding.

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