Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
|
Type representing a single packet (video or audio). More...
#include <elementary_media_packet.h>
Public Attributes | |
Seconds | pts |
Seconds | dts |
Seconds | duration |
Duration of the packet. More... | |
bool | is_key_frame |
Whether the packet represents a key frame. More... | |
size_t | data_size |
Size of data in bytes. More... | |
const void * | data |
Base address of buffer containing data of the packet. More... | |
uint32_t | width |
uint32_t | height |
uint32_t | framerate_num |
uint32_t | framerate_den |
SessionId | session_id |
Type representing a single packet (video or audio).
Definition at line 19 of file elementary_media_packet.h.
const void* samsung::wasm::ElementaryMediaPacket::data |
Base address of buffer containing data of the packet.
Definition at line 38 of file elementary_media_packet.h.
size_t samsung::wasm::ElementaryMediaPacket::data_size |
Size of data
in bytes.
Definition at line 35 of file elementary_media_packet.h.
Seconds samsung::wasm::ElementaryMediaPacket::dts |
Decode Timestamp, indicates time relative to the beginning of the stream when a packet must be sent to the decoder.
Definition at line 26 of file elementary_media_packet.h.
Seconds samsung::wasm::ElementaryMediaPacket::duration |
Duration of the packet.
Definition at line 29 of file elementary_media_packet.h.
uint32_t samsung::wasm::ElementaryMediaPacket::framerate_den |
Framerate denominator, used to perform framerate change.
ElementaryMediaPacket::framerate_num
is set. Value 0
means this parameter is unused and no framerate change is being performed.Definition at line 76 of file elementary_media_packet.h.
uint32_t samsung::wasm::ElementaryMediaPacket::framerate_num |
Framerate numerator, used to perform framerate change.
ElementaryMediaPacket::framerate_den
is set. Value 0
means this parameter is unused and no framerate change is being performed.Definition at line 66 of file elementary_media_packet.h.
uint32_t samsung::wasm::ElementaryMediaPacket::height |
Height of video frame in pixels, used to perform resolution change.
0
means it is unused and no resolution change is being performed.Definition at line 56 of file elementary_media_packet.h.
bool samsung::wasm::ElementaryMediaPacket::is_key_frame |
Whether the packet represents a key frame.
Definition at line 32 of file elementary_media_packet.h.
Seconds samsung::wasm::ElementaryMediaPacket::pts |
Presentation Timestamp, indicates time relative to the beginning of the stream when a packet must be rendered.
Definition at line 22 of file elementary_media_packet.h.
SessionId samsung::wasm::ElementaryMediaPacket::session_id |
Id of a session the packet belongs to. Used to differentiate packets sent to ElementaryMediaTrack
before it closes and after it reopens. This is required for multithreaded Apps in some playback scenarios (e.g when seeking or App multitasking happens).
session_id
value is sent/processed by Platform, it will be ignored. Such appends return the OperationResult::kAppendIgnored
error code, but it's okay to ignore such an error as it's expected in most scenarios.ElementaryMediaTrackListener::OnSessionIdChanged()
event and append post-open packets with a session_id
this event delivers.Apps that operate on a main thread only can ignore this mechanism. In such case, session_id
should be set to kIgnoreSessionId
.
SessionId
ElementaryMediaTrack::GetSessionId()
ElementaryMediaTrackListener::OnSessionIdChanged()
ElementaryMediaTrackListener::OnTrackOpen()
ElementaryMediaTrackListener::OnTrackClose()
Definition at line 99 of file elementary_media_packet.h.
uint32_t samsung::wasm::ElementaryMediaPacket::width |
Width of video frame in pixels, used to perform resolution change.
0
means it is unused and no resolution change is being performed.Definition at line 47 of file elementary_media_packet.h.