NaCl Player API
NaCl Player API Documentation
elementary_stream_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_ELEMENTARY_STREAM_LISTENER_H_
6 #define NACL_PLAYER_ELEMENTARY_STREAM_LISTENER_H_
7 
8 #include <cstdint>
9 
10 #include "nacl_player/media_common.h"
11 
15 namespace Samsung {
16 namespace NaClPlayer {
17 
20  public:
21  virtual ~ElementaryStreamListener();
22 
36  virtual void OnNeedData(int32_t bytes) = 0;
37 
43  virtual void OnEnoughData() = 0;
44 
50  virtual void OnSeekData(TimeTicks new_position) = 0;
51 
52  protected:
56 };
57 
58 } // namespace NaClPlayer
59 } // namespace Samsung
60 
61 #endif // NACL_PLAYER_DRM_LISTENER_H_
virtual void OnNeedData(int32_t bytes)=0
virtual void OnSeekData(TimeTicks new_position)=0
double TimeTicks
timestamp in seconds
Definition: common.h:17
Listener for receiving elementary stream related events.