File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ Dash.dependencies.DashManifestExtensions.prototype = {
57
57
}
58
58
}
59
59
60
+ if ( result ) {
61
+ adaptation . type = "audio" ;
62
+ }
60
63
return Q . when ( result ) ;
61
64
} ,
62
65
@@ -99,6 +102,9 @@ Dash.dependencies.DashManifestExtensions.prototype = {
99
102
}
100
103
}
101
104
105
+ if ( result ) {
106
+ adaptation . type = "video" ;
107
+ }
102
108
return Q . when ( result ) ;
103
109
} ,
104
110
Original file line number Diff line number Diff line change @@ -73,10 +73,23 @@ Dash.dependencies.DashMetricsExtensions = function () {
73
73
var found = false ;
74
74
75
75
if ( bufferType === "video" ) {
76
- found = this . manifestExt . getIsVideo ( adaptation ) ;
76
+ if ( adaptation . hasOwnProperty ( "type" ) ) {
77
+ if ( adaptation . type === "video" ) {
78
+ found = true ;
79
+ }
80
+ } else {
81
+ this . manifestExt . getIsVideo ( adaptation ) ;
82
+ }
77
83
}
78
84
else if ( bufferType === "audio" ) {
79
- found = this . manifestExt . getIsAudio ( adaptation ) ; // TODO : Have to be sure it's the *active* audio track.
85
+ // TODO : Have to be sure it's the *active* audio track.
86
+ if ( adaptation . hasOwnProperty ( "type" ) ) {
87
+ if ( adaptation . type === "audio" ) {
88
+ found = true ;
89
+ }
90
+ } else {
91
+ this . manifestExt . getIsAudio ( adaptation ) ;
92
+ }
80
93
}
81
94
else {
82
95
found = false ;
You can’t perform that action at this time.
0 commit comments