File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/js/api/provider/html5/providers Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,14 @@ const WebRTCLoader = function (provider,
733733
734734 let rendition = renditions [ i ] ;
735735
736+ if ( ! rendition . video_track && ! rendition . audio_track ) {
737+ continue ;
738+ }
739+
736740 spec . qualityLevels . push ( {
737- bitrate : rendition . video_track . video . bitrate ,
738- height : rendition . video_track . video . height ,
739- width : rendition . video_track . video . width ,
741+ bitrate : rendition . video_track ? rendition . video_track . video . bitrate : rendition . audio_track . bitrate ,
742+ height : rendition . video_track ? rendition . video_track . video . height : 0 ,
743+ width : rendition . video_track ? rendition . video_track . video . width : 0 ,
740744 index : i ,
741745 label : rendition . name
742746 } ) ;
You can’t perform that action at this time.
0 commit comments