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.

ElementaryMediaStreamSource events are delivered via this interface when a listener is registered by ElementaryMediaStreamSource::SetListener().

See also
ElementaryMediaStreamSource

Definition at line 21 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 the preferred method of receiving time updates and should be used instead of html::HTMLMediaElementListener::OnTimeUpdate().

Parameters
[in]new_timeNew playback position.

Definition at line 50 of file elementary_media_stream_source_listener.h.

◆ OnSourceClosed()

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

Called when an associated source object enters the ElementaryMediaStreamSource::ReadyState::kClosed state.

Definition at line 31 of file elementary_media_stream_source_listener.h.

◆ OnSourceDetached()

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

Called when an associated source object enters the ElementaryMediaStreamSource::ReadyState::kDetached state.

Definition at line 27 of file elementary_media_stream_source_listener.h.

◆ OnSourceEnded()

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

Called when an associated source object enters the ElementaryMediaStreamSource::ReadyState::kEnded state.

Definition at line 43 of file elementary_media_stream_source_listener.h.

◆ OnSourceOpen()

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

Called when an associated source object enters the ElementaryMediaStreamSource::ReadyState::kOpen state.

Definition at line 39 of file elementary_media_stream_source_listener.h.

◆ OnSourceOpenPending()

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

Called when an associated source object enters the ElementaryMediaStreamSource::ReadyState::kOpenPending state.

Definition at line 35 of file elementary_media_stream_source_listener.h.


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