Tizen WASM Player
Tizen WASM Player: Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
encrypted_elementary_media_packet.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_ENCRYPTED_ELEMENTARY_MEDIA_PACKET_H_
7 #define INCLUDE_SAMSUNG_WASM_ENCRYPTED_ELEMENTARY_MEDIA_PACKET_H_
8 
9 #include <cstdint>
10 #include <vector>
11 
12 #include "samsung/wasm/common.h"
14 #include "samsung/wasm/media_key.h"
15 
16 namespace samsung {
17 namespace wasm {
18 
20  uint32_t clear_block;
21  uint32_t cipher_block;
22 };
23 
29  std::vector<EncryptedSubsampleDescription> subsamples;
30 
32  std::vector<uint8_t> key_id;
33 
35  std::vector<uint8_t> initialization_vector;
36 
39 };
40 
41 } // namespace wasm
42 } // namespace samsung
43 
44 #endif // INCLUDE_SAMSUNG_WASM_ENCRYPTED_ELEMENTARY_MEDIA_PACKET_H_
samsung::wasm::EncryptedSubsampleDescription::clear_block
uint32_t clear_block
Definition: encrypted_elementary_media_packet.h:20
samsung::wasm::EncryptedSubsampleDescription
Definition: encrypted_elementary_media_packet.h:19
samsung::wasm::EncryptedSubsampleDescription::cipher_block
uint32_t cipher_block
Definition: encrypted_elementary_media_packet.h:21
samsung::wasm::EncryptedElementaryMediaPacket::initialization_vector
std::vector< uint8_t > initialization_vector
Initialization Vector (IV) needed to decrypt given packet.
Definition: encrypted_elementary_media_packet.h:35
media_key.h
elementary_media_packet.h
samsung::wasm::EncryptedElementaryMediaPacket
Type representing a single encrypted packet (video or audio).
Definition: encrypted_elementary_media_packet.h:25
common.h
samsung::wasm::ElementaryMediaPacket
Type representing a single packet (video or audio).
Definition: elementary_media_packet.h:19
samsung::wasm::EncryptedElementaryMediaPacket::encryption_mode
EncryptionMode encryption_mode
Type of initialization data used for encryption.
Definition: encrypted_elementary_media_packet.h:38
samsung::wasm::EncryptedElementaryMediaPacket::key_id
std::vector< uint8_t > key_id
ID of the key needed to decrypt given packet.
Definition: encrypted_elementary_media_packet.h:32
samsung::wasm::EncryptedElementaryMediaPacket::subsamples
std::vector< EncryptedSubsampleDescription > subsamples
Definition: encrypted_elementary_media_packet.h:29
samsung::wasm::EncryptionMode
EncryptionMode
Lists supported encryption modes.
Definition: media_key.h:20
samsung
Definition: html_media_element.h:15