Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CMediaBackendEmss Class Referencefinal

Samsung's Tizen WASM Player: the TV decodes elementary streams and shows the video on its own plane. Audio it refuses is converted to PCM. More...

#include <MediaBackendEmss.h>

Inheritance diagram for CMediaBackendEmss:
IMediaBackendWasm

Public Member Functions

 CMediaBackendEmss ()
 
 ~CMediaBackendEmss () override
 
std::string Name () const override
 
bool SupportsVideo (const CDVDStreamInfo &hint) override
 Looks at the codec, profile, bit depth, size and frame rate only.
 
AudioPath GetAudioPath (const CDVDStreamInfo &hint) override
 Looks at the codec, profile, channels and sample rate only.
 
std::string Open (const CDVDStreamInfo &video, const CDVDStreamInfo *audio, AudioPath audioPath, double duration) override
 Creates the media source with its tracks and waits until it takes packets.
 
void Close () override
 
std::string VideoCodecName () const override
 
std::string AudioCodecName () const override
 
bool IsHardwareVideoDecoder () const override
 Whether the backend confirmed hardware video decoding.
 
double MaxAudioAhead () const override
 How far ahead of the playback position audio can be appended.
 
bool PrepareVideo (DemuxPacket &packet, Packet &out) override
 
AppendResult AppendVideo (const Packet &packet) override
 
AppendResult AppendAudio (const Packet &packet) override
 
bool EndVideo () override
 
bool EndAudio () override
 
void ConvertAudio (const DVDAudioFrame &frame) override
 For AudioPath::CONVERTED: takes decoded frames and returns them as packets to append.
 
void FinishConvertedAudio () override
 Turns the frames held back for a bigger packet into one.
 
bool PeekConvertedAudio (Packet &out) override
 
void PopConvertedAudio () override
 
void Flush () override
 Drops what the backend holds for the position before a flush.
 
void Play () override
 
void Pause () override
 
void SetRate (double rate) override
 
bool HasVolume () const override
 Whether SetVolume() applies Kodi's volume; otherwise the device's own volume does.
 
void SetVolume (float volume) override
 The TV sets the volume; this only mutes.
 
void Seek (double seconds) override
 Moves playback to seconds and returns once the tracks take packets for it.
 
void SetStartPosition (double seconds) override
 Where a fresh source reports to be until it plays.
 
int Error () const override
 0 while playback has no error.
 
bool CanPlay () const override
 
bool Ended () const override
 
double Position () const override
 
int Resumes () const override
 
- Public Member Functions inherited from IMediaBackendWasm
virtual ~IMediaBackendWasm ()=default
 

Additional Inherited Members

- Public Types inherited from IMediaBackendWasm
enum class  AppendResult {
  OK , FULL , STALE , NEEDS_KEY_FRAME ,
  FAILED
}
 
enum class  AudioPath { NONE , NATIVE , CONVERTED }
 
- Static Public Member Functions inherited from IMediaBackendWasm
static std::vector< std::unique_ptr< IMediaBackendWasm > > Create ()
 The backends for this device and settings, the preferred one first.
 

Detailed Description

Samsung's Tizen WASM Player: the TV decodes elementary streams and shows the video on its own plane. Audio it refuses is converted to PCM.

Constructor & Destructor Documentation

◆ CMediaBackendEmss()

CMediaBackendEmss::CMediaBackendEmss ( )

◆ ~CMediaBackendEmss()

CMediaBackendEmss::~CMediaBackendEmss ( )
override

Member Function Documentation

◆ AppendAudio()

IMediaBackendWasm::AppendResult CMediaBackendEmss::AppendAudio ( const Packet & packet)
overridevirtual

Implements IMediaBackendWasm.

◆ AppendVideo()

IMediaBackendWasm::AppendResult CMediaBackendEmss::AppendVideo ( const Packet & packet)
overridevirtual

Implements IMediaBackendWasm.

◆ AudioCodecName()

std::string CMediaBackendEmss::AudioCodecName ( ) const
overridevirtual

Implements IMediaBackendWasm.

◆ CanPlay()

bool CMediaBackendEmss::CanPlay ( ) const
overridevirtual

Implements IMediaBackendWasm.

◆ Close()

void CMediaBackendEmss::Close ( )
overridevirtual

Implements IMediaBackendWasm.

◆ ConvertAudio()

void CMediaBackendEmss::ConvertAudio ( const DVDAudioFrame & frame)
overridevirtual

For AudioPath::CONVERTED: takes decoded frames and returns them as packets to append.

Implements IMediaBackendWasm.

◆ EndAudio()

bool CMediaBackendEmss::EndAudio ( )
overridevirtual

Implements IMediaBackendWasm.

◆ Ended()

bool CMediaBackendEmss::Ended ( ) const
overridevirtual

Implements IMediaBackendWasm.

◆ EndVideo()

bool CMediaBackendEmss::EndVideo ( )
overridevirtual

Ends the track after the data appended so far.

Returns
false when it has to be called again later.

Implements IMediaBackendWasm.

◆ Error()

int CMediaBackendEmss::Error ( ) const
overridevirtual

0 while playback has no error.

Implements IMediaBackendWasm.

◆ FinishConvertedAudio()

void CMediaBackendEmss::FinishConvertedAudio ( )
overridevirtual

Turns the frames held back for a bigger packet into one.

Implements IMediaBackendWasm.

◆ Flush()

void CMediaBackendEmss::Flush ( )
overridevirtual

Drops what the backend holds for the position before a flush.

Implements IMediaBackendWasm.

◆ GetAudioPath()

IMediaBackendWasm::AudioPath CMediaBackendEmss::GetAudioPath ( const CDVDStreamInfo & hint)
overridevirtual

Looks at the codec, profile, channels and sample rate only.

Implements IMediaBackendWasm.

◆ HasVolume()

bool CMediaBackendEmss::HasVolume ( ) const
inlineoverridevirtual

Whether SetVolume() applies Kodi's volume; otherwise the device's own volume does.

Implements IMediaBackendWasm.

◆ IsHardwareVideoDecoder()

bool CMediaBackendEmss::IsHardwareVideoDecoder ( ) const
overridevirtual

Whether the backend confirmed hardware video decoding.

Reimplemented from IMediaBackendWasm.

◆ MaxAudioAhead()

double CMediaBackendEmss::MaxAudioAhead ( ) const
inlineoverridevirtual

How far ahead of the playback position audio can be appended.

Implements IMediaBackendWasm.

◆ Name()

std::string CMediaBackendEmss::Name ( ) const
inlineoverridevirtual

Implements IMediaBackendWasm.

◆ Open()

std::string CMediaBackendEmss::Open ( const CDVDStreamInfo & video,
const CDVDStreamInfo * audio,
AudioPath audioPath,
double duration )
overridevirtual

Creates the media source with its tracks and waits until it takes packets.

Parameters
audionullptr for no audio.
durationinfinity when unknown.
Returns
A description of the tracks for the log, empty on failure.

Implements IMediaBackendWasm.

◆ Pause()

void CMediaBackendEmss::Pause ( )
overridevirtual

Implements IMediaBackendWasm.

◆ PeekConvertedAudio()

bool CMediaBackendEmss::PeekConvertedAudio ( Packet & out)
overridevirtual

Implements IMediaBackendWasm.

◆ Play()

void CMediaBackendEmss::Play ( )
overridevirtual

Implements IMediaBackendWasm.

◆ PopConvertedAudio()

void CMediaBackendEmss::PopConvertedAudio ( )
overridevirtual

Implements IMediaBackendWasm.

◆ Position()

double CMediaBackendEmss::Position ( ) const
overridevirtual

Implements IMediaBackendWasm.

◆ PrepareVideo()

bool CMediaBackendEmss::PrepareVideo ( DemuxPacket & packet,
Packet & out )
overridevirtual
Returns
false when the packet is not to be appended, such as before the first parameter sets. out stays valid until the next call.

Implements IMediaBackendWasm.

◆ Resumes()

int CMediaBackendEmss::Resumes ( ) const
overridevirtual

Times the platform resumed playback on its own, which drops what was appended. The backend takes packets again from Position().

Reimplemented from IMediaBackendWasm.

◆ Seek()

void CMediaBackendEmss::Seek ( double seconds)
overridevirtual

Moves playback to seconds and returns once the tracks take packets for it.

Implements IMediaBackendWasm.

◆ SetRate()

void CMediaBackendEmss::SetRate ( double rate)
overridevirtual

Implements IMediaBackendWasm.

◆ SetStartPosition()

void CMediaBackendEmss::SetStartPosition ( double seconds)
overridevirtual

Where a fresh source reports to be until it plays.

Implements IMediaBackendWasm.

◆ SetVolume()

void CMediaBackendEmss::SetVolume ( float volume)
overridevirtual

The TV sets the volume; this only mutes.

Implements IMediaBackendWasm.

◆ SupportsVideo()

bool CMediaBackendEmss::SupportsVideo ( const CDVDStreamInfo & hint)
overridevirtual

Looks at the codec, profile, bit depth, size and frame rate only.

Implements IMediaBackendWasm.

◆ VideoCodecName()

std::string CMediaBackendEmss::VideoCodecName ( ) const
overridevirtual

Implements IMediaBackendWasm.


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