-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAampMediaType.h
More file actions
80 lines (70 loc) · 3.07 KB
/
AampMediaType.h
File metadata and controls
80 lines (70 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file AampMediaType.h
* @brief Media types representation
*/
#ifndef AAMPMEDIATYPE_H
#define AAMPMEDIATYPE_H
typedef long BitsPerSecond;
#define BITSPERSECOND_FORMAT "ld"
/**
* @enum AampMediaType
* @brief Media types
*/
// Please maintain the order video, audio and subtitle in future
// Above order to be maintained across fragment, init and playlist media types
// These enums are used in a lot of calculation in AAMP code and breaking the order will bring a lot of issues
// This order is also followed in other enums like AampCurlInstance and TrackType
enum AampMediaType
{ // renamed from "MediaType" to avoid namespace collision with OpenCDM definition
eMEDIATYPE_VIDEO, /**< Type video */
eMEDIATYPE_AUDIO, /**< Type audio */
eMEDIATYPE_SUBTITLE, /**< Type subtitle */
eMEDIATYPE_RESERVED, /**< Reserved for future */
eMEDIATYPE_MANIFEST, /**< Type manifest */
eMEDIATYPE_LICENCE, /**< Type license */
eMEDIATYPE_IFRAME, /**< Type iframe */
eMEDIATYPE_INIT_VIDEO, /**< Type video init fragment */
eMEDIATYPE_INIT_AUDIO, /**< Type audio init fragment */
eMEDIATYPE_INIT_SUBTITLE, /**< Type subtitle init fragment */
eMEDIATYPE_INIT_RESERVED, /**< Reserved for future */
eMEDIATYPE_PLAYLIST_VIDEO, /**< Type video playlist */
eMEDIATYPE_PLAYLIST_AUDIO, /**< Type audio playlist */
eMEDIATYPE_PLAYLIST_SUBTITLE, /**< Type subtitle playlist */
eMEDIATYPE_PLAYLIST_RESERVED, /**< Reserved for future */
eMEDIATYPE_PLAYLIST_IFRAME, /**< Type Iframe playlist */
eMEDIATYPE_INIT_IFRAME, /**< Type IFRAME init fragment */
eMEDIATYPE_DSM_CC, /**< Type digital storage media command and control (DSM-CC) */
eMEDIATYPE_IMAGE, /**< Type image for thumbnail playlist */
eMEDIATYPE_DEFAULT /**< Type unknown */
};
/**
* @enum MediaTypeTelemetry
* @brief Media types for telemetry
*/
enum MediaTypeTelemetry
{
eMEDIATYPE_TELEMETRY_AVS, /**< Type audio, video or subtitle */
eMEDIATYPE_TELEMETRY_DRM, /**< Type DRM license */
eMEDIATYPE_TELEMETRY_INIT, /**< Type audio or video init fragment */
eMEDIATYPE_TELEMETRY_MANIFEST, /**< Type main or sub manifest file */
eMEDIATYPE_TELEMETRY_UNKNOWN, /**< Type unknown*/
};
#endif /* AAMPMEDIATYPE_H */