Tizen WASM Player
Tizen WASM Player: Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
samsung::wasm::ElementaryMediaStreamSourceListener Class Reference

Allows receiving ElementaryMediaStreamSource events. More...

#include <elementary_media_stream_source_listener.h>

Public Member Functions

virtual ~ElementaryMediaStreamSourceListener ()=default
 
virtual void OnSourceDetached ()
 
virtual void OnSourceClosed ()
 
virtual void OnSourceOpenPending ()
 
virtual void OnSourceOpen ()
 
virtual void OnSourceEnded ()
 
virtual void OnPlaybackPositionChanged (Seconds)
 

Detailed Description

Allows receiving ElementaryMediaStreamSource events.

An interface to receive updates of ElementaryMediaStreamSource. Object implementing this interface needs to be bound to ElementaryMediaStreamSource::SetListener method.

See also
ElementaryMediaStreamSource

Definition at line 22 of file elementary_media_stream_source_listener.h.

Constructor & Destructor Documentation

◆ ~ElementaryMediaStreamSourceListener()

virtual samsung::wasm::ElementaryMediaStreamSourceListener::~ElementaryMediaStreamSourceListener ( )
virtualdefault

Member Function Documentation

◆ OnPlaybackPositionChanged()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnPlaybackPositionChanged ( Seconds  )
inlinevirtual

Called when current playback position changes. This is preferred method of informing the app about playback position over html::HTMLMediaElementListener::OnTimeUpdate.

Remarks
If EmssVersionInfo.has_legacy_emss is true (API version 0 is used), this event behaves the same way as the html::HTMLMediaElementListener::OnTimeUpdate() event.
Parameters
[in]new_timeNew playback position.

Definition at line 56 of file elementary_media_stream_source_listener.h.

◆ OnSourceClosed()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceClosed ( )
inlinevirtual

Called when associated EMSS object enters ElementaryMediaStreamSource::ReadyState::kClosed state.

Definition at line 32 of file elementary_media_stream_source_listener.h.

◆ OnSourceDetached()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceDetached ( )
inlinevirtual

Called when associated EMSS object enters ElementaryMediaStreamSource::ReadyState::kDetached state.

Definition at line 28 of file elementary_media_stream_source_listener.h.

◆ OnSourceEnded()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceEnded ( )
inlinevirtual

Called when associated EMSS object enters ElementaryMediaStreamSource::ReadyState::kEnded state.

Definition at line 44 of file elementary_media_stream_source_listener.h.

◆ OnSourceOpen()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceOpen ( )
inlinevirtual

Called when associated EMSS object enters ElementaryMediaStreamSource::ReadyState::kOpen state.

Definition at line 40 of file elementary_media_stream_source_listener.h.

◆ OnSourceOpenPending()

virtual void samsung::wasm::ElementaryMediaStreamSourceListener::OnSourceOpenPending ( )
inlinevirtual

Called when associated EMSS object enters ElementaryMediaStreamSource::ReadyState::kOpenPending state.

Definition at line 36 of file elementary_media_stream_source_listener.h.


The documentation for this class was generated from the following file: