RDK Documentation (Open Sourced RDK Components)
AampMediaType.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's license file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2020 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @file AampMediaType.h
22  * @brief Media types representation
23  */
24 
25 
26 #ifndef AAMPMEDIATYPE_H
27 #define AAMPMEDIATYPE_H
28 
29 /**
30  * @enum MediaType
31  * @brief Media types
32  */
33 // Please maintain the order video, audio, subtitle and aux_audio in future
34 // Above order to be maintained across fragment, init and playlist media types
35 // These enums are used in a lot of calculation in AAMP code and breaking the order will bring a lot of issues
36 // This order is also followed in other enums like AampCurlInstance and TrackType
38 {
39  eMEDIATYPE_VIDEO, /**< Type video */
40  eMEDIATYPE_AUDIO, /**< Type audio */
41  eMEDIATYPE_SUBTITLE, /**< Type subtitle */
42  eMEDIATYPE_AUX_AUDIO, /**< Type auxiliary audio */
43  eMEDIATYPE_MANIFEST, /**< Type manifest */
44  eMEDIATYPE_LICENCE, /**< Type license */
45  eMEDIATYPE_IFRAME, /**< Type iframe */
46  eMEDIATYPE_INIT_VIDEO, /**< Type video init fragment */
47  eMEDIATYPE_INIT_AUDIO, /**< Type audio init fragment */
48  eMEDIATYPE_INIT_SUBTITLE, /**< Type subtitle init fragment */
49  eMEDIATYPE_INIT_AUX_AUDIO, /**< Type auxiliary audio init fragment */
50  eMEDIATYPE_PLAYLIST_VIDEO, /**< Type video playlist */
51  eMEDIATYPE_PLAYLIST_AUDIO, /**< Type audio playlist */
52  eMEDIATYPE_PLAYLIST_SUBTITLE, /**< Type subtitle playlist */
53  eMEDIATYPE_PLAYLIST_AUX_AUDIO, /**< Type auxiliary audio playlist */
54  eMEDIATYPE_PLAYLIST_IFRAME, /**< Type Iframe playlist */
55  eMEDIATYPE_INIT_IFRAME, /**< Type IFRAME init fragment */
56  eMEDIATYPE_DSM_CC, /**< Type digital storage media command and control (DSM-CC) */
57  eMEDIATYPE_IMAGE, /**< Type image for thumbnail playlist */
58  eMEDIATYPE_DEFAULT /**< Type unknown */
59 };
60 
61 
62 #endif /* AAMPMEDIATYPE_H */
63 
eMEDIATYPE_INIT_IFRAME
@ eMEDIATYPE_INIT_IFRAME
Definition: AampMediaType.h:55
eMEDIATYPE_VIDEO
@ eMEDIATYPE_VIDEO
Definition: AampMediaType.h:39
eMEDIATYPE_PLAYLIST_IFRAME
@ eMEDIATYPE_PLAYLIST_IFRAME
Definition: AampMediaType.h:54
eMEDIATYPE_MANIFEST
@ eMEDIATYPE_MANIFEST
Definition: AampMediaType.h:43
eMEDIATYPE_AUX_AUDIO
@ eMEDIATYPE_AUX_AUDIO
Definition: AampMediaType.h:42
eMEDIATYPE_DEFAULT
@ eMEDIATYPE_DEFAULT
Definition: AampMediaType.h:58
eMEDIATYPE_AUDIO
@ eMEDIATYPE_AUDIO
Definition: AampMediaType.h:40
eMEDIATYPE_PLAYLIST_AUX_AUDIO
@ eMEDIATYPE_PLAYLIST_AUX_AUDIO
Definition: AampMediaType.h:53
eMEDIATYPE_INIT_AUDIO
@ eMEDIATYPE_INIT_AUDIO
Definition: AampMediaType.h:47
eMEDIATYPE_PLAYLIST_VIDEO
@ eMEDIATYPE_PLAYLIST_VIDEO
Definition: AampMediaType.h:50
MediaType
MediaType
Media types.
Definition: AampMediaType.h:37
eMEDIATYPE_INIT_SUBTITLE
@ eMEDIATYPE_INIT_SUBTITLE
Definition: AampMediaType.h:48
eMEDIATYPE_INIT_AUX_AUDIO
@ eMEDIATYPE_INIT_AUX_AUDIO
Definition: AampMediaType.h:49
eMEDIATYPE_IFRAME
@ eMEDIATYPE_IFRAME
Definition: AampMediaType.h:45
eMEDIATYPE_DSM_CC
@ eMEDIATYPE_DSM_CC
Definition: AampMediaType.h:56
eMEDIATYPE_PLAYLIST_SUBTITLE
@ eMEDIATYPE_PLAYLIST_SUBTITLE
Definition: AampMediaType.h:52
eMEDIATYPE_IMAGE
@ eMEDIATYPE_IMAGE
Definition: AampMediaType.h:57
eMEDIATYPE_INIT_VIDEO
@ eMEDIATYPE_INIT_VIDEO
Definition: AampMediaType.h:46
eMEDIATYPE_PLAYLIST_AUDIO
@ eMEDIATYPE_PLAYLIST_AUDIO
Definition: AampMediaType.h:51
eMEDIATYPE_LICENCE
@ eMEDIATYPE_LICENCE
Definition: AampMediaType.h:44
eMEDIATYPE_SUBTITLE
@ eMEDIATYPE_SUBTITLE
Definition: AampMediaType.h:41