Tizen WASM Player
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 
23  public:
25 
28  virtual void OnSourceDetached() {}
29 
32  virtual void OnSourceClosed() {}
33 
36  virtual void OnSourceOpenPending() {}
37 
40  virtual void OnSourceOpen() {}
41 
44  virtual void OnSourceEnded() {}
45 
56  virtual void OnPlaybackPositionChanged(Seconds /*new_time*/) {}
57 };
58 
59 } // namespace wasm
60 } // namespace samsung
61 
62 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_STREAM_SOURCE_LISTENER_H_
samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceDetached
virtual void OnSourceDetached()
Definition: elementary_media_stream_source_listener.h:28
samsung::wasm::ElementaryMediaStreamSourceListener::~ElementaryMediaStreamSourceListener
virtual ~ElementaryMediaStreamSourceListener()=default
samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceOpenPending
virtual void OnSourceOpenPending()
Definition: elementary_media_stream_source_listener.h:36
samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceEnded
virtual void OnSourceEnded()
Definition: elementary_media_stream_source_listener.h:44
samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceOpen
virtual void OnSourceOpen()
Definition: elementary_media_stream_source_listener.h:40
samsung::wasm::Seconds
std::chrono::duration< double > Seconds
Default duration type used throughout the API.
Definition: common.h:55
common.h
samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceClosed
virtual void OnSourceClosed()
Definition: elementary_media_stream_source_listener.h:32
samsung::wasm::ElementaryMediaStreamSourceListener::OnPlaybackPositionChanged
virtual void OnPlaybackPositionChanged(Seconds)
Definition: elementary_media_stream_source_listener.h:56
samsung::wasm::ElementaryMediaStreamSourceListener
Allows receiving ElementaryMediaStreamSource events.
Definition: elementary_media_stream_source_listener.h:22
samsung
Definition: html_media_element.h:15