@@ -937,27 +937,25 @@ export class PlaylistController extends videojs.EventTarget {
937937 this . onEndOfStream ( ) ;
938938 } ) ;
939939
940- // In DASH, there is the possibility of the video segment and the audio segment
940+ // There is the possibility of the video segment and the audio segment
941941 // at a current time to be on different timelines. When this occurs, the player
942942 // forwards playback to a point where these two segment types are back on the same
943943 // timeline. This time will be just after the end of the audio segment that is on
944944 // a previous timeline.
945- if ( this . sourceType_ === 'dash' ) {
946- this . timelineChangeController_ . on ( 'audioTimelineBehind' , ( ) => {
947- const segmentInfo = this . audioSegmentLoader_ . pendingSegment_ ;
945+ this . timelineChangeController_ . on ( 'audioTimelineBehind' , ( ) => {
946+ const segmentInfo = this . audioSegmentLoader_ . pendingSegment_ ;
948947
949- if ( ! segmentInfo || ! segmentInfo . segment || ! segmentInfo . segment . syncInfo ) {
950- return ;
951- }
948+ if ( ! segmentInfo || ! segmentInfo . segment || ! segmentInfo . segment . syncInfo ) {
949+ return ;
950+ }
952951
953- // Update the current time to just after the faulty audio segment.
954- // This moves playback to a spot where both audio and video segments
955- // are on the same timeline.
956- const newTime = segmentInfo . segment . syncInfo . end + 0.01 ;
952+ // Update the current time to just after the faulty audio segment.
953+ // This moves playback to a spot where both audio and video segments
954+ // are on the same timeline.
955+ const newTime = segmentInfo . segment . syncInfo . end + 0.01 ;
957956
958- this . tech_ . setCurrentTime ( newTime ) ;
959- } ) ;
960- }
957+ this . tech_ . setCurrentTime ( newTime ) ;
958+ } ) ;
961959
962960 this . mainSegmentLoader_ . on ( 'earlyabort' , ( event ) => {
963961 // never try to early abort with the new ABR algorithm
0 commit comments