video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.88k stars 2.58k forks source link

Live video start is delayed by deferred audio buffering, when audio track load completes before main level #4631

Closed pcruiksh closed 2 years ago

pcruiksh commented 2 years ago

What version of Hls.js are you using?

1.1.4

What browser (including version) are you using?

Chrome 99

What OS (including version) are you using?

Mac OS 12.3

Test stream

No response

Configuration

{}

Additional player setup steps

n/a

Checklist

Steps to reproduce

Load a live stream.

Expected behaviour

Player should buffer audio when audio and main track info is available.

What actually happened?

Occasionally, AUDIO_TRACK_LOADED is dispatched before LEVEL_LOADED, which means the audio stream controller will ignore the track data because it hasn't received the main level data in order to align the segment start times by PDT. This has the effect of occasionally deferring video playback by a full playlist update period, as no audio is buffered.

Currently we are working around this by caching the audio level details on the controller, when mainDetails is still null, and just immediately invoking onAudioTrackLoaded with the data, after receiving LEVEL_LOADED.

In the attached console log, note the player is idle (with no playback occurring) for approximately six seconds between 2022-04-04 09:30:08.028 and 2022-04-04 09:30:13.736, until the next audio track playlist is fetched.

Console output

2022-04-04 09:30:07.298 [hlsJsPlugin]
2022-04-04 09:30:07.424 [hlsJsPlugin] attachMedia
2022-04-04 09:30:07.425 [hlsJsPlugin] Attempting to load media from https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/index_mobile.m3u8 with player ID 61007212
2022-04-04 09:30:07.425 [hlsJsPlugin] stopLoad
2022-04-04 09:30:07.425 [hlsJsPlugin] loadSource:https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/index_mobile.m3u8
2022-04-04 09:30:07.425 [hlsJsPlugin] [stream-controller]: Trigger BUFFER_RESET
2022-04-04 09:30:07.456 [hlsJsPlugin] [buffer-controller]: Media source opened
2022-04-04 09:30:07.457 [hlsJsPlugin] [subtitle-stream-controller]: STOPPED->IDLE
2022-04-04 09:30:07.595 [hlsJsPlugin] [level-controller]: manifest loaded, 12 level(s) found, first bitrate: 532000
2022-04-04 09:30:07.595 [hlsJsPlugin] 2 bufferCodec event(s) expected
2022-04-04 09:30:07.595 [hlsJsPlugin] Requesting encrypted media key-system access
2022-04-04 09:30:07.596 [hlsJsPlugin] startLoad(-1)
2022-04-04 09:30:07.596 [hlsJsPlugin] [level-controller]: switching to level 4 from -1
2022-04-04 09:30:07.597 [hlsJsPlugin] [audio-track-controller]: Updating audio tracks, 2 track(s) found in "HEAAC-32kbps" group-id
2022-04-04 09:30:07.597 [hlsJsPlugin] [audio-track-controller]: Now switching to audio-track index 0
2022-04-04 09:30:07.597 [hlsJsPlugin] [audio-stream-controller]: STOPPED->IDLE
2022-04-04 09:30:07.597 [hlsJsPlugin] [audio-stream-controller]: IDLE->WAITING_TRACK
2022-04-04 09:30:07.597 [hlsJsPlugin] [subtitle-track-controller]: Updating subtitle tracks, 1 track(s) found in "Subtitles" group-id
2022-04-04 09:30:07.598 [hlsJsPlugin] [level-controller]: Attempt loading level index 4 with URL-id 0 https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/03.m3u8
2022-04-04 09:30:07.598 [hlsJsPlugin] [stream-controller]: STOPPED->IDLE
2022-04-04 09:30:07.598 [hlsJsPlugin] [audio-track-controller]: loading audio-track playlist for id: 0
2022-04-04 09:30:07.599 [hlsJsPlugin] [audio-stream-controller]: WAITING_TRACK->STOPPED
2022-04-04 09:30:07.599 [hlsJsPlugin] [audio-stream-controller]: STOPPED->WAITING_TRACK
2022-04-04 09:30:07.599 [hlsJsPlugin] [subtitle-stream-controller]: IDLE->STOPPED
2022-04-04 09:30:07.599 [hlsJsPlugin] [subtitle-stream-controller]: STOPPED->IDLE
2022-04-04 09:30:07.600 [hlsJsPlugin] Access for key-system "com.widevine.alpha" obtained
2022-04-04 09:30:07.602 [hlsJsPlugin] Widevine server certificate installed
2022-04-04 09:30:07.603 [hlsJsPlugin] Media-keys created for key-system "com.widevine.alpha"
2022-04-04 09:30:07.603 [hlsJsPlugin] New key-system session 
2022-04-04 09:30:07.775 [hlsJsPlugin] [audio-track-controller]: audioTrack 0 loaded [2293988-2294601]
2022-04-04 09:30:07.775 [hlsJsPlugin] [audio-track-controller]: reload live playlist 0 in 5960 ms
2022-04-04 09:30:07.776 [hlsJsPlugin] [audio-stream-controller]: Track 0 loaded [2293988,2294601],duration:3659.6480000000233
2022-04-04 09:30:07.779 [hlsJsPlugin] [level-controller]: reload live playlist 4 in 5960 ms
2022-04-04 09:30:07.779 [hlsJsPlugin] [stream-controller]: Level 4 loaded [2293988,2294601], cc [0, 0] duration:3659.655999999974
2022-04-04 09:30:07.779 [hlsJsPlugin] [stream-controller]: Live playlist sliding: 0.00 start-sn: na->2293988 prev-sn: na fragments: 614
2022-04-04 09:30:07.797 [hlsJsPlugin] [buffer-controller]: Updating Media Source duration to 3659.656
2022-04-04 09:30:07.798 [hlsJsPlugin] [stream-controller]: Loading fragment initSegment cc: 0 level: 4, target: 0
2022-04-04 09:30:07.798 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:07.820 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->IDLE
2022-04-04 09:30:07.820 [hlsJsPlugin] [stream-controller]: Buffered main sn: initSegment of level 4 
2022-04-04 09:30:07.821 [hlsJsPlugin] [stream-controller]: Loading fragment 2294598 cc: 0 of [2293988-2294601] level: 4, target: 3638.677
2022-04-04 09:30:07.821 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:08.002 [hlsJsPlugin] demuxing in webworker
2022-04-04 09:30:08.004 [hlsJsPlugin] [transmuxer-interface, main]: Starting new transmux session for sn: 2294598 p: -1 level: 4 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 3635.6319999999746
        initSegmentChange: true
2022-04-04 09:30:08.005 [hlsJsPlugin] [stream-controller]: Loaded fragment 2294598 of level 4
2022-04-04 09:30:08.027 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:08.027 [hlsJsPlugin] [stream-controller]: Init video buffer, container:video/mp4, codecs[level/parsed]=[avc1.4d401f/avc1.4d401f]
2022-04-04 09:30:08.027 [hlsJsPlugin] [audio-stream-controller]: InitPTS for cc: 0 found from main: 13713493.8607336
2022-04-04 09:30:08.028 [hlsJsPlugin] [stream-controller]: PARSING->PARSED
2022-04-04 09:30:13.736 [hlsJsPlugin] [audio-track-controller]: loading audio-track playlist for id: 0
2022-04-04 09:30:13.739 [hlsJsPlugin] [level-controller]: Attempt loading level index 4 at sn undefined part undefined with URL-id 0 https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/03.m3u8
2022-04-04 09:30:13.915 [hlsJsPlugin] [level-controller]: live playlist 4 REFRESHED 2294602--1
2022-04-04 09:30:13.917 [hlsJsPlugin] [level-controller]: reload live playlist 4 in 5960 ms
2022-04-04 09:30:13.917 [hlsJsPlugin] [stream-controller]: Level 4 loaded [2293989,2294602], cc [0, 0] duration:3659.655999999974
2022-04-04 09:30:13.926 [hlsJsPlugin] [buffer-controller]: Updating Media Source duration to 3665.662
2022-04-04 09:30:13.930 [hlsJsPlugin] [audio-track-controller]: audioTrack 0 loaded [2293989-2294602]
2022-04-04 09:30:13.930 [hlsJsPlugin] [audio-track-controller]: live playlist 0 REFRESHED 2294602--1
2022-04-04 09:30:13.930 [hlsJsPlugin] [audio-track-controller]: reload live playlist 0 in 5960 ms
2022-04-04 09:30:13.931 [hlsJsPlugin] [audio-stream-controller]: Track 0 loaded [2293989,2294602],duration:3659.6480000000233
2022-04-04 09:30:13.951 [hlsJsPlugin] [audio-stream-controller]: WAITING_TRACK->IDLE
2022-04-04 09:30:13.952 [hlsJsPlugin] [audio-stream-controller]: Loading fragment initSegment cc: 0 track: 0, target: 0
2022-04-04 09:30:13.952 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:13.958 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->IDLE
2022-04-04 09:30:13.958 [hlsJsPlugin] [audio-stream-controller]: Buffered audio sn: initSegment of track 0 
2022-04-04 09:30:13.958 [hlsJsPlugin] [audio-stream-controller]: Loading fragment 2294599 cc: 0 of [2293989-2294602] track: 0, target: 3644.701
2022-04-04 09:30:13.958 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.076 [hlsJsPlugin] demuxing in webworker
2022-04-04 09:30:14.078 [hlsJsPlugin] [transmuxer-interface, audio]: Starting new transmux session for sn: 2294599 p: -1 level: 0 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 3641.674
        initSegmentChange: true
2022-04-04 09:30:14.078 [hlsJsPlugin] [audio-stream-controller]: Loaded fragment 2294599 of level 0
2022-04-04 09:30:14.103 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.103 [hlsJsPlugin] [audio-stream-controller]: Switching audio track : flushing all audio
2022-04-04 09:30:14.103 [hlsJsPlugin] [audio-stream-controller]: Init audio buffer, container:audio/mp4, codecs[parsed]=[mp4a.40.5]
2022-04-04 09:30:14.104 [hlsJsPlugin] [buffer-controller]: creating sourceBuffer(video/mp4;codecs=avc1.4d401f)
2022-04-04 09:30:14.104 [hlsJsPlugin] [buffer-controller]: creating sourceBuffer(audio/mp4;codecs=mp4a.40.5)
2022-04-04 09:30:14.104 [hlsJsPlugin] [stream-controller]: Alternate track found, use video.buffered to schedule main fragment loading
2022-04-04 09:30:14.104 [hlsJsPlugin] [buffer-controller]: Removing [0,3665.661999999974] from the audio SourceBuffer
2022-04-04 09:30:14.105 [hlsJsPlugin] [audio-stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.106 [hlsJsPlugin] Media is encrypted using "cenc" init data type
2022-04-04 09:30:14.106 [hlsJsPlugin] Setting keys for encrypted media
2022-04-04 09:30:14.106 [hlsJsPlugin] Generating key-session request for "cenc" init data type
2022-04-04 09:30:14.107 [hlsJsPlugin] Media is encrypted using "cenc" init data type
2022-04-04 09:30:14.108 [hlsJsPlugin] [stream-controller]: Buffered main sn: 2294598 of level 4 [3635.699,3641.705]
2022-04-04 09:30:14.108 [hlsJsPlugin] [stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.109 [hlsJsPlugin] [level-controller]: switching to level 11 from 4
2022-04-04 09:30:14.109 [hlsJsPlugin] [audio-track-controller]: Updating audio tracks, 2 track(s) found in "HEAAC-96kbps" group-id
2022-04-04 09:30:14.111 [hlsJsPlugin] [audio-track-controller]: Now switching to audio-track index 0
2022-04-04 09:30:14.111 [hlsJsPlugin] [audio-stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.111 [hlsJsPlugin] [audio-stream-controller]: IDLE->WAITING_TRACK
2022-04-04 09:30:14.111 [hlsJsPlugin] [audio-track-controller]: loading audio-track playlist for id: 0
2022-04-04 09:30:14.112 [hlsJsPlugin] [level-controller]: Attempt loading level index 11 with URL-id 0 https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/06.m3u8
2022-04-04 09:30:14.112 [hlsJsPlugin] [stream-controller]: IDLE->WAITING_LEVEL
2022-04-04 09:30:14.149 [hlsJsPlugin] Key-session generation succeeded
2022-04-04 09:30:14.150 [hlsJsPlugin] Received key message event license-request
2022-04-04 09:30:14.150 [hlsJsPlugin] Got EME message event, creating license request
2022-04-04 09:30:14.150 [hlsJsPlugin] Requesting content license for key-system
2022-04-04 09:30:14.150 [hlsJsPlugin] Sending license request to URL: http://dummy-url.com
2022-04-04 09:30:14.253 [hlsJsPlugin] [audio-track-controller]: audioTrack 0 loaded [2293989-2294602]
2022-04-04 09:30:14.253 [hlsJsPlugin] [audio-track-controller]: reload live playlist 0 in 5960 ms
2022-04-04 09:30:14.253 [hlsJsPlugin] [audio-stream-controller]: Track 0 loaded [2293989,2294602],duration:3659.6480000000233
2022-04-04 09:30:14.273 [hlsJsPlugin] [audio-stream-controller]: WAITING_TRACK->IDLE
2022-04-04 09:30:14.322 [hlsJsPlugin] License request succeeded
2022-04-04 09:30:14.322 [hlsJsPlugin] Received license data (length: 690), updating key-session
2022-04-04 09:30:14.326 [hlsJsPlugin] [level-controller]: reload live playlist 11 in 5960 ms
2022-04-04 09:30:14.326 [hlsJsPlugin] [stream-controller]: Level 11 loaded [2293990,2294603], cc [0, 0] duration:3659.655999999974
2022-04-04 09:30:14.326 [hlsJsPlugin] Adjusting PTS using programDateTime delta 6006ms, sliding:12.012 https://dfwlive-v1-c1p1-sponsored.akamaized.net/Content/HLS.cps/Live/channel(HGTVHD-8244.dfw.1080)/06.m3u8 
2022-04-04 09:30:14.327 [hlsJsPlugin] [stream-controller]: Live playlist sliding: 12.01 start-sn: na->2293990 prev-sn: 2294598 fragments: 614
2022-04-04 09:30:14.347 [hlsJsPlugin] [stream-controller]: WAITING_LEVEL->IDLE
2022-04-04 09:30:14.348 [hlsJsPlugin] [stream-controller]: Loading fragment initSegment cc: 0 level: 11, target: 0
2022-04-04 09:30:14.348 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.364 [hlsJsPlugin] [buffer-controller]: Updating Media Source duration to 3671.668
2022-04-04 09:30:14.367 [hlsJsPlugin] [stream-controller]: media seeking to 3650.691, state: FRAG_LOADING
2022-04-04 09:30:14.368 [hlsJsPlugin] [stream-controller]: seeking outside of buffer while fragment load in progress, cancel fragment load
2022-04-04 09:30:14.368 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->IDLE
2022-04-04 09:30:14.368 [hlsJsPlugin] [audio-stream-controller]: media seeking to 3650.691, state: IDLE
2022-04-04 09:30:14.368 [hlsJsPlugin] [subtitle-stream-controller]: media seeking to 3650.691, state: IDLE
2022-04-04 09:30:14.369 [hlsJsPlugin] [stream-controller]: Loading fragment initSegment cc: 0 level: 11, target: 0
2022-04-04 09:30:14.370 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.395 [hlsJsPlugin] [audio-stream-controller]: Loading fragment initSegment cc: 0 track: 0, target: 0
2022-04-04 09:30:14.395 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.398 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->IDLE
2022-04-04 09:30:14.398 [hlsJsPlugin] [stream-controller]: Buffered main sn: initSegment of level 11 [3635.699,3641.705]
2022-04-04 09:30:14.398 [hlsJsPlugin] [stream-controller]: Loading fragment 2294600 cc: 0 of [2293990-2294603] level: 11, target: 3650.691
2022-04-04 09:30:14.398 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.418 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->IDLE
2022-04-04 09:30:14.419 [hlsJsPlugin] [audio-stream-controller]: Buffered audio sn: initSegment of track 0 [3641.741,3647.714]
2022-04-04 09:30:14.419 [hlsJsPlugin] [audio-stream-controller]: Loading fragment 2294600 cc: 0 of [2293989-2294602] track: 0, target: 3650.691
2022-04-04 09:30:14.419 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.534 [hlsJsPlugin] demuxing in webworker
2022-04-04 09:30:14.537 [hlsJsPlugin] [transmuxer-interface, audio]: Starting new transmux session for sn: 2294600 p: -1 level: 0 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 3647.647
        initSegmentChange: true
2022-04-04 09:30:14.537 [hlsJsPlugin] [audio-stream-controller]: Loaded fragment 2294600 of level 0
2022-04-04 09:30:14.558 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.558 [hlsJsPlugin] [audio-stream-controller]: Switching audio track : flushing all audio
2022-04-04 09:30:14.558 [hlsJsPlugin] [buffer-controller]: Removing [0,3671.6679999999737] from the audio SourceBuffer
2022-04-04 09:30:14.558 [hlsJsPlugin] [audio-stream-controller]: Init audio buffer, container:audio/mp4, codecs[parsed]=[mp4a.40.5]
2022-04-04 09:30:14.560 [hlsJsPlugin] [audio-stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.561 [hlsJsPlugin] Media is encrypted using "cenc" init data type
2022-04-04 09:30:14.561 [hlsJsPlugin] [audio-stream-controller]: Buffered audio sn: 2294600 of track 0 [3647.714,3653.730]
2022-04-04 09:30:14.561 [hlsJsPlugin] [audio-stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.561 [hlsJsPlugin] [audio-stream-controller]: Loading fragment 2294601 cc: 0 of [2293989-2294602] track: 0, target: 3653.73
2022-04-04 09:30:14.562 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.655 [hlsJsPlugin] [transmuxer-interface, main]: Starting new transmux session for sn: 2294600 p: -1 level: 11 id: 1
        discontinuity: false
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 3647.6439999999743
        initSegmentChange: true
2022-04-04 09:30:14.656 [hlsJsPlugin] [stream-controller]: Loaded fragment 2294600 of level 11
2022-04-04 09:30:14.660 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.660 [hlsJsPlugin] [stream-controller]: Init video buffer, container:video/mp4, codecs[level/parsed]=[avc1.4d4028/avc1.4d4028]
2022-04-04 09:30:14.661 [hlsJsPlugin] [stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.662 [hlsJsPlugin] Media is encrypted using "cenc" init data type
2022-04-04 09:30:14.666 [hlsJsPlugin] [stream-controller]: Buffered main sn: 2294600 of level 11 [3635.699,3641.705][3647.711,3653.717]
2022-04-04 09:30:14.666 [hlsJsPlugin] [stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.667 [hlsJsPlugin] [stream-controller]: Loading fragment 2294601 cc: 0 of [2293990-2294603] level: 11, target: 3653.717
2022-04-04 09:30:14.667 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.672 [hlsJsPlugin] Received key status update for session EC89AAFD7F891811CF4B4F7CBBF72BD0
2022-04-04 09:30:14.745 [hlsJsPlugin] [stream-controller]: Media seeked to 3650.691
2022-04-04 09:30:14.760 [hlsJsPlugin] [audio-stream-controller]: Loaded fragment 2294601 of level 0
2022-04-04 09:30:14.760 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.762 [hlsJsPlugin] [audio-stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.762 [hlsJsPlugin] [audio-stream-controller]: Buffered audio sn: 2294601 of track 0 [3647.714,3659.746]
2022-04-04 09:30:14.762 [hlsJsPlugin] [audio-stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.763 [hlsJsPlugin] [audio-stream-controller]: Loading fragment 2294602 cc: 0 of [2293989-2294602] track: 0, target: 3659.746
2022-04-04 09:30:14.763 [hlsJsPlugin] [audio-stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:14.945 [hlsJsPlugin] [audio-stream-controller]: Loaded fragment 2294602 of level 0
2022-04-04 09:30:14.946 [hlsJsPlugin] [audio-stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.947 [hlsJsPlugin] [audio-stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.948 [hlsJsPlugin] [audio-stream-controller]: Buffered audio sn: 2294602 of track 0 [3647.714,3665.762]
2022-04-04 09:30:14.948 [hlsJsPlugin] [audio-stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.987 [hlsJsPlugin] [stream-controller]: Loaded fragment 2294601 of level 11
2022-04-04 09:30:14.992 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:14.994 [hlsJsPlugin] [stream-controller]: PARSING->PARSED
2022-04-04 09:30:14.996 [hlsJsPlugin] [stream-controller]: Buffered main sn: 2294601 of level 11 [3635.699,3641.705][3647.711,3659.723]
2022-04-04 09:30:14.996 [hlsJsPlugin] [stream-controller]: PARSED->IDLE
2022-04-04 09:30:14.997 [hlsJsPlugin] [stream-controller]: Loading fragment 2294602 cc: 0 of [2293990-2294603] level: 11, target: 3659.723
2022-04-04 09:30:14.997 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:15.282 [hlsJsPlugin] [stream-controller]: Loaded fragment 2294602 of level 11
2022-04-04 09:30:15.287 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:15.288 [hlsJsPlugin] [stream-controller]: PARSING->PARSED
2022-04-04 09:30:15.291 [hlsJsPlugin] [stream-controller]: Buffered main sn: 2294602 of level 11 [3635.699,3641.705][3647.711,3665.729]
2022-04-04 09:30:15.291 [hlsJsPlugin] [stream-controller]: PARSED->IDLE
2022-04-04 09:30:15.291 [hlsJsPlugin] [stream-controller]: Loading fragment 2294603 cc: 0 of [2293990-2294603] level: 11, target: 3665.729
2022-04-04 09:30:15.291 [hlsJsPlugin] [stream-controller]: IDLE->FRAG_LOADING
2022-04-04 09:30:15.587 [hlsJsPlugin] [stream-controller]: Loaded fragment 2294603 of level 11
2022-04-04 09:30:15.591 [hlsJsPlugin] [stream-controller]: FRAG_LOADING->PARSING
2022-04-04 09:30:15.593 [hlsJsPlugin] [stream-controller]: PARSING->PARSED
2022-04-04 09:30:15.595 [hlsJsPlugin] [stream-controller]: Buffered main sn: 2294603 of level 11 [3635.699,3641.705][3647.711,3671.735]
2022-04-04 09:30:15.596 [hlsJsPlugin] [stream-controller]: PARSED->IDLE

Chrome media internals output

No response

kmikodev commented 2 years ago

Hi all, we have been trying the solution proposed by infocity-hirata in this topic.

This solution works for us. Do you know if this fix will be included coming soon, or the core of hlsjs are thinking in an other way?

Does anyone else have the same problem or have checked this solution?

infocity-hirata Thanks so much!!!