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

#include <subtitle_listener.h>

Public Member Functions

virtual void OnShowSubtitle (TimeDelta duration, const char *text)=0

Protected Member Functions

 SubtitleListener ()

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.

Definition at line 21 of file subtitle_listener.h.

Constructor & Destructor Documentation

◆ SubtitleListener()

Samsung::NaClPlayer::SubtitleListener::SubtitleListener ( )

The default constructor which creates listener not attached to the player

Member Function Documentation

◆ OnShowSubtitle()

virtual void Samsung::NaClPlayer::SubtitleListener::OnShowSubtitle ( TimeDelta  duration,
const char *  text 
pure virtual

Event sent when a subtitle should be displayed.

[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 file: