NaCl Player API
NaCl Player API Documentation
media_common.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NACL_PLAYER_MEDIA_COMMON_H_
6 #define NACL_PLAYER_MEDIA_COMMON_H_
7 
8 #include <cstdint>
9 #include <string>
10 
11 #include "nacl_player/common.h"
12 
15 namespace Samsung {
16 namespace NaClPlayer {
17 
25 
28 
31 
34 
37 };
38 
43 
46 
50 
53 
56 };
57 
62 
65 
68 
71 
74 
77 
80 
83 
86 
89 
92 
95 };
96 
98 enum DRMType {
101 
104 
107 
110 
113 
116 
119 
122 };
123 
128 
132 
135 
138 
141 
144 };
145 
156 
175 };
176 
182 
185 
198 
208 
214 
220 
223 
226 };
227 
232  uint32_t index;
233 
236  uint32_t bitrate;
237 
240 };
241 
246  uint32_t index;
247 
249  std::string language;
250 };
251 
256  uint32_t index;
257 
261 
263  std::string language;
264 };
265 
269 struct ESPacket {
273 
279 
282 
285 
287  uint32_t size;
288 
290  const void* buffer;
291 };
292 
319  uint32_t clear_bytes;
320 
322  uint32_t cipher_bytes;
323 };
324 
328  uint32_t key_id_size;
329 
332  const void* key_id;
333 
335  uint32_t iv_size;
336 
339  const void* iv;
340 
342  uint32_t num_subsamples;
343 
347 };
348 
352  uint32_t handle;
353 
355  uint32_t size;
356 };
357 
358 } // namespace NaClPlayer
359 } // namespace Samsung
360 
361 #endif // NACL_PLAYER_MEDIA_COMMON_H_
Structure describing TrustZone memory reference.
Definition: media_common.h:350
uint32_t clear_bytes
Size in bytes of clear data in a subsample entry.
Definition: media_common.h:319
MediaPlayerError
List of errors which might be reported by the player.
Definition: media_common.h:59
std::string language
String representing language of text track encoded in IETF RFC 5646 */.
Definition: media_common.h:263
Player is playing media. Media time is advancing.
Definition: media_common.h:52
Setting properties of a DRM instance.
Definition: media_common.h:127
uint32_t handle
Handle to a TrustZone memory containing data.
Definition: media_common.h:352
uint32_t iv_size
Size in bytes of the |iv| field.
Definition: media_common.h:335
Structure describing video track from played media.
Definition: media_common.h:229
uint32_t size
Size of the memory in TrustZone.
Definition: media_common.h:355
uint32_t num_subsamples
Number of subsamples for given ES packet (sample).
Definition: media_common.h:342
const void * buffer
Base address of buffer containing data of the packet.
Definition: media_common.h:290
Player has been created but no data sources hasn&#39;t been attached yet.
Definition: media_common.h:45
Widevine modular (used with MPEG-DASH) DRM system.
Definition: media_common.h:115
Defines integral size of 2D rectangle.
Definition: common.h:42
Deleting a license from a DRM instance.
Definition: media_common.h:137
std::string language
String representing language of audio track encoded in IETF RFC 5646.
Definition: media_common.h:249
Gets duration of the clip in seconds.
Definition: media_common.h:222
Structure describing encrypted packet.
Definition: media_common.h:326
double TimeTicks
timestamp in seconds
Definition: common.h:17
const EncryptedSubsampleDescription * subsamples
Definition: media_common.h:346
bool is_key_frame
Whether the packet represents a key frame.
Definition: media_common.h:284
The user agent for streaming playback.
Definition: media_common.h:184
Media is encoded using unsupported codec.
Definition: media_common.h:82
Text/Subtitles Elementary Stream.
Definition: media_common.h:33
Number of valid Elementary Streams, which can be used as an array size.
Definition: media_common.h:36
Size size
Decoded video frame size in pixels.
Definition: media_common.h:239
MediaPlayerState
States of the media player.
Definition: media_common.h:40
DRMType
List of supported types of DRM systems.
Definition: media_common.h:98
Unknown/Invalid Elementary Stream.
Definition: media_common.h:24
Resource error has occured (i.e. no space left on device, no such file)
Definition: media_common.h:88
Playback has been paused and can be resumed.
Definition: media_common.h:55
Rendering error has occurred.
Definition: media_common.h:79
TimeDelta duration
Duration of the packet.
Definition: media_common.h:281
Structure describing audio track from played media.
Definition: media_common.h:243
uint32_t key_id_size
Size in bytes of the |key_id| field.
Definition: media_common.h:328
Structure describing text/subtitles track from played media.
Definition: media_common.h:253
Querying the version of DRM system.
Definition: media_common.h:143
Requesting key to DRM license server with the initiator information.
Definition: media_common.h:140
uint32_t size
Size in bytes of packet data.
Definition: media_common.h:287
DRMOperation
List of possible DRM system operation.
Definition: media_common.h:125
Installing a license into a DRM instance.
Definition: media_common.h:134
double TimeDelta
difference of two timestamps in seconds
Definition: common.h:20
Indicates invalid state for the player.
Definition: media_common.h:42
uint32_t cipher_bytes
Size in bytes of encrypted data in a subsample entry.
Definition: media_common.h:322
The cookie for streaming playback.
Definition: media_common.h:181