File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1053,7 +1053,7 @@ function DashManifestModel() {
10531053 }
10541054
10551055 const mainAS = getMainAdaptationSetForPreselection ( preselection , adaptations ) ;
1056- return mainAS . Representation [ 0 ] ;
1056+ return ( mainAS ? mainAS . Representation [ 0 ] : undefined ) ;
10571057 }
10581058
10591059 function getPreselectionsForPeriod ( voPeriod ) {
Original file line number Diff line number Diff line change @@ -246,8 +246,9 @@ function AdapterMock() {
246246 }
247247
248248 this . getCommonRepresentationForPreselection = function ( preselection , adaptations ) {
249- const id = preselection . preselectionComponents . split ( ' ' ) [ 0 ]
250- return adaptations . find ( ( as ) => as . id == id ) . Representation [ 0 ]
249+ const id = preselection . preselectionComponents . split ( ' ' ) [ 0 ] ;
250+ const as = adaptations . find ( ( as ) => as . id == id ) ;
251+ return ( as ? as . Representation [ 0 ] : undefined ) ;
251252 }
252253
253254}
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ class CapabilitiesMock {
4545 isCodecSupportedBasedOnTestedConfigurations ( ) {
4646 return true ;
4747 }
48+
49+ supportsEssentialProperty ( ) {
50+ return true ;
51+ }
4852}
4953
5054export default CapabilitiesMock ;
You can’t perform that action at this time.
0 commit comments