Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
html_media_element_listener.h
Go to the documentation of this file.
1 // Copyright 2020 Samsung Electronics
2 // TizenTV Emscripten extensions are available under two separate licenses, the
3 // MIT license and the University of Illinois/NCSA Open Source License. Both
4 // these licenses can be found in the LICENSE file.
5 
6 #ifndef INCLUDE_SAMSUNG_HTML_HTML_MEDIA_ELEMENT_LISTENER_H_
7 #define INCLUDE_SAMSUNG_HTML_HTML_MEDIA_ELEMENT_LISTENER_H_
8 
9 #include "samsung/html/common.h"
10 
11 namespace samsung {
12 namespace html {
13 
17 
23  public:
24  virtual ~HTMLMediaElementListener() = default;
25  virtual void OnPlaying() {}
26  virtual void OnTimeUpdate() {}
27  virtual void OnLoadStart() {}
28  virtual void OnLoadedMetadata() {}
29  virtual void OnLoadedData() {}
30  virtual void OnCanPlay() {}
31  virtual void OnCanPlayThrough() {}
32  virtual void OnEnded() {}
33  virtual void OnPlay() {}
34  virtual void OnSeeking() {}
35  virtual void OnSeeked() {}
36  virtual void OnPause() {}
37  virtual void OnWaiting() {}
38 
42  virtual void OnError(MediaError, const char* /*error_msg*/) {}
43 };
44 
45 } // namespace html
46 } // namespace samsung
47 
48 #endif // INCLUDE_SAMSUNG_HTML_HTML_MEDIA_ELEMENT_LISTENER_H_
virtual void OnError(MediaError, const char *)
Allows receiving HTMLMediaElement events.