Skip to content

Commit b50a52f

Browse files
committed
VPLAY-12012: Deprecate auxiliary audio support in AAMP
Reason for change: Deprecate auxiliary audio support Test Procedure: Ensure there are no regression Risks: None Signed-off-by: Vinish100 <[email protected]>
1 parent 393bc23 commit b50a52f

File tree

85 files changed

+223
-1353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+223
-1353
lines changed

AampCMCDCollector.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,6 @@ void AampCMCDCollector::Initialize(bool enableDisable , std::string &traceId)
114114
pCMCDMetrics->SetMediaType("INIT_AUDIO");
115115
delete mCMCDStreamData[eMEDIATYPE_INIT_AUDIO];
116116
mCMCDStreamData[eMEDIATYPE_INIT_AUDIO] = pCMCDMetrics;
117-
// for Aux Audio
118-
pCMCDMetrics = new AudioCMCDHeaders();
119-
pCMCDMetrics->SetSessionId(mTraceId);
120-
pCMCDMetrics->SetMediaType("AUXAUDIO");
121-
delete mCMCDStreamData[eMEDIATYPE_AUX_AUDIO];
122-
mCMCDStreamData[eMEDIATYPE_AUX_AUDIO] = pCMCDMetrics;
123-
// for Aux Audio Init
124-
pCMCDMetrics = new AudioCMCDHeaders();
125-
pCMCDMetrics->SetSessionId(mTraceId);
126-
pCMCDMetrics->SetMediaType("INIT_AUDIO");
127-
delete mCMCDStreamData[eMEDIATYPE_INIT_AUX_AUDIO];
128-
mCMCDStreamData[eMEDIATYPE_INIT_AUX_AUDIO] = pCMCDMetrics;
129117
// for Subtitle
130118
pCMCDMetrics = new SubtitleCMCDHeaders();
131119
pCMCDMetrics->SetSessionId(mTraceId);
@@ -326,7 +314,6 @@ void AampCMCDCollector::SetTrackData(AampMediaType mediaType,bool bufferRedStatu
326314
pCMCDMetrics->SetBufferStarvation(bufferRedStatus);
327315
pCMCDMetrics->SetBufferLength(bufferedDuration);
328316
}
329-
// No data for Aux Audio now //////////////
330317
}
331318
}
332319

AampDefine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@
113113
#define DEFAULT_AD_FULFILLMENT_TIMEOUT 2000 /**< Default Ad fulfillment timeout in milliseconds */
114114
#define MAX_AD_FULFILLMENT_TIMEOUT 5000 /**< Max Ad fulfillment timeout in milliseconds */
115115

116-
#define AAMP_TRACK_COUNT 4 /**< internal use - audio+video+sub+aux track */
116+
#define AAMP_TRACK_COUNT 3 /**< internal use - audio+video+sub track */
117117
#define DEFAULT_CURL_INSTANCE_COUNT (AAMP_TRACK_COUNT + 1) /**< One for Manifest/Playlist + Number of tracks */
118-
#define AAMP_DRM_CURL_COUNT 4 /**< audio+video+sub+aux track DRMs */
118+
#define AAMP_DRM_CURL_COUNT 3 /**< audio+video+sub track DRMs */
119119
//#define CURL_FRAGMENT_DL_TIMEOUT 10L /**< Curl timeout for fragment download */
120120
#define DEFAULT_PLAYLIST_DL_TIMEOUT 10L /**< Curl timeout for playlist download */
121121
#define DEFAULT_CURL_TIMEOUT 5L /**< Default timeout for Curl downloads */

AampMPDUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ bool IsCompatibleMimeType(const std::string& mimeType, AampMediaType mediaType)
172172
break;
173173

174174
case eMEDIATYPE_AUDIO:
175-
case eMEDIATYPE_AUX_AUDIO:
176175
if ((mimeType == "audio/webm") ||
177176
(mimeType == "audio/mp4"))
178177
isCompatible = true;

AampMediaType.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @enum AampMediaType
3131
* @brief Media types
3232
*/
33-
// Please maintain the order video, audio, subtitle and aux_audio in future
33+
// Please maintain the order video, audio and subtitle in future
3434
// Above order to be maintained across fragment, init and playlist media types
3535
// These enums are used in a lot of calculation in AAMP code and breaking the order will bring a lot of issues
3636
// This order is also followed in other enums like AampCurlInstance and TrackType
@@ -39,18 +39,15 @@ enum AampMediaType
3939
eMEDIATYPE_VIDEO, /**< Type video */
4040
eMEDIATYPE_AUDIO, /**< Type audio */
4141
eMEDIATYPE_SUBTITLE, /**< Type subtitle */
42-
eMEDIATYPE_AUX_AUDIO, /**< Type auxiliary audio */
4342
eMEDIATYPE_MANIFEST, /**< Type manifest */
4443
eMEDIATYPE_LICENCE, /**< Type license */
4544
eMEDIATYPE_IFRAME, /**< Type iframe */
4645
eMEDIATYPE_INIT_VIDEO, /**< Type video init fragment */
4746
eMEDIATYPE_INIT_AUDIO, /**< Type audio init fragment */
4847
eMEDIATYPE_INIT_SUBTITLE, /**< Type subtitle init fragment */
49-
eMEDIATYPE_INIT_AUX_AUDIO, /**< Type auxiliary audio init fragment */
5048
eMEDIATYPE_PLAYLIST_VIDEO, /**< Type video playlist */
5149
eMEDIATYPE_PLAYLIST_AUDIO, /**< Type audio playlist */
5250
eMEDIATYPE_PLAYLIST_SUBTITLE, /**< Type subtitle playlist */
53-
eMEDIATYPE_PLAYLIST_AUX_AUDIO, /**< Type auxiliary audio playlist */
5451
eMEDIATYPE_PLAYLIST_IFRAME, /**< Type Iframe playlist */
5552
eMEDIATYPE_INIT_IFRAME, /**< Type IFRAME init fragment */
5653
eMEDIATYPE_DSM_CC, /**< Type digital storage media command and control (DSM-CC) */

AampProfiler.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,18 @@ typedef enum
4848
PROFILE_BUCKET_PLAYLIST_VIDEO, /**< Video playlist download bucket*/
4949
PROFILE_BUCKET_PLAYLIST_AUDIO, /**< Audio playlist download bucket*/
5050
PROFILE_BUCKET_PLAYLIST_SUBTITLE, /**< Subtitle playlist download bucket*/
51-
PROFILE_BUCKET_PLAYLIST_AUXILIARY, /**< Auxiliary playlist download bucket*/
5251

5352
PROFILE_BUCKET_INIT_VIDEO, /**< Video init fragment download bucket*/
5453
PROFILE_BUCKET_INIT_AUDIO, /**< Audio init fragment download bucket*/
5554
PROFILE_BUCKET_INIT_SUBTITLE, /**< Subtitle fragment download bucket*/
56-
PROFILE_BUCKET_INIT_AUXILIARY, /**< Auxiliary fragment download bucket*/
5755

5856
PROFILE_BUCKET_FRAGMENT_VIDEO, /**< Video fragment download bucket*/
5957
PROFILE_BUCKET_FRAGMENT_AUDIO, /**< Audio fragment download bucket*/
6058
PROFILE_BUCKET_FRAGMENT_SUBTITLE, /**< Subtitle fragment download bucket*/
61-
PROFILE_BUCKET_FRAGMENT_AUXILIARY, /**< Auxiliary fragment download bucket*/
6259

6360
PROFILE_BUCKET_DECRYPT_VIDEO, /**< Video decryption bucket*/
6461
PROFILE_BUCKET_DECRYPT_AUDIO, /**< Audio decryption bucket*/
6562
PROFILE_BUCKET_DECRYPT_SUBTITLE, /**< Subtitle decryption bucket*/
66-
PROFILE_BUCKET_DECRYPT_AUXILIARY, /**< Auxiliary decryption bucket*/
6763

6864
PROFILE_BUCKET_LA_TOTAL, /**< License acquisition total bucket*/
6965
PROFILE_BUCKET_LA_PREPROC, /**< License acquisition pre-processing bucket*/

AampStreamSinkInactive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AampStreamSinkInactive : public StreamSink
4747
* @fn Configure
4848
* @brief stub implementation for Inactive aamp instance
4949
*/
50-
virtual void Configure(StreamOutputFormat format, StreamOutputFormat audioFormat, StreamOutputFormat auxFormat, StreamOutputFormat subFormat, bool bESChangeStatus, bool forwardAudioToAux, bool setReadyAfterPipelineCreation=false)
50+
virtual void Configure(StreamOutputFormat format, StreamOutputFormat audioFormat, StreamOutputFormat subFormat, bool bESChangeStatus, bool setReadyAfterPipelineCreation=false)
5151
{
5252
AAMPLOG_WARN("Called AAMPGstPlayer()::%s stub", __FUNCTION__);
5353
}

AampTSBSessionManager.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,6 @@ AampMediaType AampTSBSessionManager::ConvertMediaType(AampMediaType actualMediat
662662
{
663663
mediaType = eMEDIATYPE_SUBTITLE;
664664
}
665-
else if (mediaType == eMEDIATYPE_INIT_AUX_AUDIO)
666-
{
667-
mediaType = eMEDIATYPE_AUX_AUDIO;
668-
}
669665
else if (mediaType == eMEDIATYPE_INIT_IFRAME)
670666
{
671667
mediaType = eMEDIATYPE_IFRAME;

AampUtils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,18 +607,15 @@ enum HarvestConfigType
607607
eHARVEST_ENABLE_VIDEO = 0x00000001, /**< Enable Harvest Video fragments - set 1st bit*/
608608
eHARVEST_ENABLE_AUDIO = 0x00000002, /**< Enable Harvest audio - set 2nd bit*/
609609
eHARVEST_ENABLE_SUBTITLE = 0x00000004, /**< Enable Harvest subtitle - set 3rd bit */
610-
eHARVEST_ENABLE_AUX_AUDIO = 0x00000008, /**< Enable Harvest auxiliary audio - set 4th bit*/
611610
eHARVEST_ENABLE_MANIFEST = 0x00000010, /**< Enable Harvest manifest - set 5th bit */
612611
eHARVEST_ENABLE_LICENCE = 0x00000020, /**< Enable Harvest license - set 6th bit */
613612
eHARVEST_ENABLE_IFRAME = 0x00000040, /**< Enable Harvest iframe - set 7th bit */
614613
eHARVEST_ENABLE_INIT_VIDEO = 0x00000080, /**< Enable Harvest video init fragment - set 8th bit*/
615614
eHARVEST_ENABLE_INIT_AUDIO = 0x00000100, /**< Enable Harvest audio init fragment - set 9th bit*/
616615
eHARVEST_ENABLE_INIT_SUBTITLE = 0x00000200, /**< Enable Harvest subtitle init fragment - set 10th bit*/
617-
eHARVEST_ENABLE_INIT_AUX_AUDIO = 0x00000400, /**< Enable Harvest auxiliary audio init fragment - set 11th bit*/
618616
eHARVEST_ENABLE_PLAYLIST_VIDEO = 0x00000800, /**< Enable Harvest video playlist - set 12th bit*/
619617
eHARVEST_ENABLE_PLAYLIST_AUDIO = 0x00001000, /**< Enable Harvest audio playlist - set 13th bit*/
620618
eHARVEST_ENABLE_PLAYLIST_SUBTITLE = 0x00002000, /**< Enable Harvest subtitle playlist - set 14th bit*/
621-
eHARVEST_ENABLE_PLAYLIST_AUX_AUDIO = 0x00004000, /**< Enable Harvest auxiliary audio playlist - set 15th bit*/
622619
eHARVEST_ENABLE_PLAYLIST_IFRAME = 0x00008000, /**< Enable Harvest Iframe playlist - set 16th bit*/
623620
eHARVEST_ENABLE_INIT_IFRAME = 0x00010000, /**< Enable Harvest IFRAME init fragment - set 17th bit*/
624621
eHARVEST_ENABLE_DSM_CC = 0x00020000, /**< Enable Harvest digital storage media command and control (DSM-CC)- set 18th bit */
@@ -1136,18 +1133,15 @@ const char *GetMediaTypeName(AampMediaType mediaType)
11361133
"video",//eMEDIATYPE_VIDEO
11371134
"audio",//eMEDIATYPE_AUDIO
11381135
"text",//eMEDIATYPE_SUBTITLE
1139-
"aux_audio",//eMEDIATYPE_AUX_AUDIO
11401136
"manifest",//eMEDIATYPE_MANIFEST
11411137
"licence",//eMEDIATYPE_LICENCE
11421138
"iframe",//eMEDIATYPE_IFRAME
11431139
"init_video",//eMEDIATYPE_INIT_VIDEO
11441140
"init_audio",//eMEDIATYPE_INIT_AUDIO
11451141
"init_text",//eMEDIATYPE_INIT_SUBTITLE
1146-
"init_aux_audio",//eMEDIATYPE_INIT_AUX_AUDIO
11471142
"playlist_video",//eMEDIATYPE_PLAYLIST_VIDEO
11481143
"playlist_audio",//eMEDIATYPE_PLAYLIST_AUDIO
11491144
"playlist_text",//eMEDIATYPE_PLAYLIST_SUBTITLE
1150-
"playlist_aux_audio",//eMEDIATYPE_PLAYLIST_AUX_AUDIO
11511145
"playlist_iframe",//eMEDIATYPE_PLAYLIST_IFRAME
11521146
"init_iframe",//eMEDIATYPE_INIT_IFRAME
11531147
"dsm_cc",//eMEDIATYPE_DSM_CC

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,6 @@ if (COVERAGE_ENABLED)
396396
set(LIBAAMP_DEPENDS ${LIBAAMP_DEPENDS} "--coverage")
397397
endif()
398398

399-
400-
if(CMAKE_AUXILIARY_AUDIO_ENABLED)
401-
message("CMAKE_AUXILIARY_AUDIO_ENABLED set")
402-
set(LIBAAMP_DEFINES "${LIBAAMP_DEFINES} -DAAMP_AUXILIARY_AUDIO_ENABLED")
403-
endif()
404-
405399
if(CMAKE_ENABLE_PTS_RESTAMP)
406400
message("ENABLE_PTS_RESTAMP set")
407401
set(LIBAAMP_DEFINES "${LIBAAMP_DEFINES} -DENABLE_PTS_RESTAMP")

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,16 @@ playlistTimeout Playlist download time out in sec. Default: 10s
264264
By default aamp will dump all the type of data, set 0 for disabling harvest
265265
0x00000001 (1) - Enable Harvest Video fragments - set 1st bit
266266
0x00000002 (2) - Enable Harvest audio - set 2nd bit
267-
0x00000004 (4) - Enable Harvest subtitle - set 3rd bit
268-
0x00000008 (8) - Enable Harvest auxiliary audio - set 4th bit
267+
0x00000004 (4) - Enable Harvest subtitle - set 3rd bit
269268
0x00000010 (16) - Enable Harvest manifest - set 5th bit
270269
0x00000020 (32) - Enable Harvest license - set 6th bit , TODO: not yet supported license dumping
271270
0x00000040 (64) - Enable Harvest iframe - set 7th bit
272271
0x00000080 (128) - Enable Harvest video init fragment - set 8th bit
273272
0x00000100 (256) - Enable Harvest audio init fragment - set 9th bit
274273
0x00000200 (512) - Enable Harvest subtitle init fragment - set 10th bit
275-
0x00000400 (1024) - Enable Harvest auxiliary audio init fragment - set 11th bit
276274
0x00000800 (2048) - Enable Harvest video playlist - set 12th bit
277275
0x00001000 (4096) - Enable Harvest audio playlist - set 13th bit
278276
0x00002000 (8192) - Enable Harvest subtitle playlist - set 14th bit
279-
0x00004000 (16384) - Enable Harvest auxiliary audio playlist - set 15th bit
280277
0x00008000 (32768) - Enable Harvest Iframe playlist - set 16th bit
281278
0x00010000 (65536) - Enable Harvest IFRAME init fragment - set 17th bit
282279
example :- if you want harvest only manifest and video fragments , set value like 0x00000001 + 0x00000010 = 0x00000011 = 17

0 commit comments

Comments
 (0)