Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
elementary_media_stream_source_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_WASM_ELEMENTARY_MEDIA_STREAM_SOURCE_LISTENER_H_
7 #define INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_STREAM_SOURCE_LISTENER_H_
8 
9 #include "samsung/wasm/common.h"
10 
11 namespace samsung {
12 namespace wasm {
13 
22  public:
23  virtual ~ElementaryMediaStreamSourceListener() = default;
24 
27  virtual void OnSourceDetached() {}
28 
31  virtual void OnSourceClosed() {}
32 
35  virtual void OnSourceOpenPending() {}
36 
39  virtual void OnSourceOpen() {}
40 
43  virtual void OnSourceEnded() {}
44 
50  virtual void OnPlaybackPositionChanged(Seconds /*new_time*/) {}
51 
63  virtual void OnClosedCaptions(const uint8_t* /*closed_captions*/,
64  size_t /*captions_length*/) {}
65 };
66 
67 } // namespace wasm
68 } // namespace samsung
69 
70 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_STREAM_SOURCE_LISTENER_H_
Allows receiving ElementaryMediaStreamSource events.
std::chrono::duration< double > Seconds
Default duration type used throughout the API.
Definition: common.h:53