NaCl Player API
NaCl Player API Documentation
media_events_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_MEDIA_EVENTS_LISTENER_H_
6 #define NACL_PLAYER_MEDIA_EVENTS_LISTENER_H_
7 
8 #include "nacl_player/common.h"
9 #include "nacl_player/media_common.h"
10 #include "nacl_player/media_player.h"
11 
15 namespace Samsung {
16 namespace NaClPlayer {
17 
20  public:
21  virtual ~MediaEventsListener();
22 
29  virtual void OnTimeUpdate(TimeTicks time) = 0;
30 
32  virtual void OnEnded() = 0;
33 
37  virtual void OnError(MediaPlayerError error) = 0;
38 
39  protected:
43 };
44 
45 } // namespace NaClPlayer
46 } // namespace Samsung
47 
48 #endif // NACL_PLAYER_MEDIA_EVENTS_LISTENER_H_
MediaPlayerError
List of errors which might be reported by the player.
Definition: media_common.h:59
virtual void OnTimeUpdate(TimeTicks time)=0
virtual void OnError(MediaPlayerError error)=0
double TimeTicks
timestamp in seconds
Definition: common.h:17
virtual void OnEnded()=0
Played clip has ended.
Listener for receiving player or playback related events.