Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
media_events_listener_samsung.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 PPAPI_CPP_SAMSUNG_MEDIA_EVENTS_LISTENER_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_MEDIA_EVENTS_LISTENER_SAMSUNG_H_
7 
8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/samsung/ppp_media_player_samsung.h"
10 
14 namespace pp {
15 
16 class MediaPlayer_Samsung;
17 
24  public:
25  virtual ~MediaEventsListener_Samsung();
26 
33  virtual void OnTimeUpdate(PP_TimeTicks time);
34 
36  virtual void OnEnded();
37 
41  virtual void OnError(PP_MediaPlayerError error);
42 
43  protected:
47 
50 
52  void AttachTo(MediaPlayer_Samsung* player);
53 
54  private:
55  void Detach();
56  PP_Resource player_;
57 
58  // Disallow copy and assign
61 };
62 
63 } // namespace pp
64 
65 #endif // PPAPI_CPP_SAMSUNG_MEDIA_EVENTS_LISTENER_SAMSUNG_H_
virtual void OnError(PP_MediaPlayerError error)
virtual void OnTimeUpdate(PP_TimeTicks time)
Definition: media_events_listener_samsung.h:23
void AttachTo(MediaPlayer_Samsung *player)
Attaches listener to the |player|.
virtual void OnEnded()
Played clip has ended.
Definition: media_player_samsung.h:37