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_
Type representing a single encrypted packet (either video or audio).
std::vector< uint8_t > initialization_vector
Initialization Vector (IV) needed to decrypt the packet.
std::vector< EncryptedSubsampleDescription > subsamples
Type representing a single packet (video or audio).
EncryptionMode encryption_mode
Type of initialization data used for encryption.
std::vector< uint8_t > key_id
ID of the key (KID) needed to decrypt the packet.
EncryptionMode
Lists encryption modes recognized by WASM Player.
Definition: media_key.h:20