NaCl Player API
NaCl Player API Documentation
subtitle_listener.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NACL_PLAYER_SUBTITLE_LISTENER_H_
6 #define NACL_PLAYER_SUBTITLE_LISTENER_H_
7 
8 #include "nacl_player/common.h"
9 
14 namespace Samsung {
15 namespace NaClPlayer {
16 
22  public:
23  virtual ~SubtitleListener();
24 
31  virtual void OnShowSubtitle(TimeDelta duration, const char* text) = 0;
32 
33  protected:
37 };
38 
39 } // namespace NaClPlayer
40 } // namespace Samsung
41 
42 #endif // NACL_PLAYER_SUBTITLE_LISTENER_H_
virtual void OnShowSubtitle(TimeDelta duration, const char *text)=0
double TimeDelta
difference of two timestamps in seconds
Definition: common.h:20