Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 3a1f83e

Browse files
Jeremie COLLETbbert
authored andcommitted
Fix a bug when there is only one representation in adaptaion, in this case, adaptation.Representation is an object, not an array.
1 parent 8de6340 commit 3a1f83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/js/streaming/MetricsExtensions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ MediaPlayer.dependencies.MetricsExtensions = function() {
124124
adaptation = manifest.Period.AdaptationSet[i];
125125
if (adaptation.type === type || adaptation.contentType === type) {
126126
//return codecs of the first Representation
127-
return adaptation.Representation[0].codecs;
127+
return adaptation.Representation_asArray[0].codecs;
128128
}
129129
}
130130

@@ -299,4 +299,4 @@ MediaPlayer.dependencies.MetricsExtensions = function() {
299299

300300
MediaPlayer.dependencies.MetricsExtensions.prototype = {
301301
constructor: MediaPlayer.dependencies.MetricsExtensions
302-
};
302+
};

0 commit comments

Comments
 (0)