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.86k stars 2.58k forks source link

Video crashed (audioTrackLoadError) on fMP4 container video with single pairing audio tracks #4205

Closed JohnVider closed 2 years ago

JohnVider commented 3 years ago

What version of Hls.js are you using?

1.0.0/1.0.1/1.0.7

What browser (including version) are you using?

Firefox/Chrome

What OS (including version) are you using?

Windows 10

Test stream

https://1011.wtvserver.xyz/channel/2340/amlst:live/playlist_sfm4s.m3u8

Configuration

{
  "debug": true,
  "enableWorker": true,
  "lowLatencyMode": true, // or 
  //"lowLatencyMode": false,
  "backBufferLength": 90
}

Additional player setup steps

No response

Checklist

Steps to reproduce

  1. Open the test player in version 1.0.0 (https://hls-js-bdb8e405-7ee8-4880-b4e8-bf1ed1f19e79.netlify.app/demo/)
  2. Paste my test stream
  3. Wait for video load (in 1920x1080 quality) and then change quality to lower (1280x720)
  4. Everything works great and the video changes smoothly.
  5. Then open test player in any newer version (now check 1.0.1 https://hls-js-214a1a90-214b-4c4d-a32a-d2d2f9d2824c.netlify.app/demo/)
  6. Paste the same test URL
  7. Wait for video load ( like before video is loaded immensely in 1920 quality)
  8. Try to change quality to lower (720p)
  9. ERROR: A media error occurred: audioTrackLoadError

Expected behaviour

Smoothly change quality and select correctly (only one available) audio track

What actually happened?

Sometimes video is crashed, sometimes the library is trying to play video, the video starts to choppy or has no sound. , but in any case, there is something wrong with the player and the video.

362.725 | A media error occurred: audioTrackLoadError 407.163 | Buffer stalled error 480.863 | Buffer stalled error


The video is chunked by the newest version of Wowza Media Streaming Engine. The stream with the fMP4 container is broken, but the same video with the old format TS is working correctly. Wowza it provides both streams at the same time so if you want to check TS use this stream:

TS: https://1011.wtvserver.xyz/channel/2340/amlst:live/playlist_sfts.m3u8

M4s: https://1011.wtvserver.xyz/channel/2340/amlst:live/playlist_sfm4s.m3u8

Console output

hls.ts:333 [log] > loadSource:https://1011.wtvserver.xyz/channel/2340/amlst:live/playlist_sfm4s.m3u8
stream-controller.ts:539 [log] > [stream-controller]: Trigger BUFFER_RESET
hls.ts:304 [log] > attachMedia
buffer-controller.ts:743 [log] > [buffer-controller]: Media source opened
base-stream-controller.ts:1275 [log] > [subtitle-stream-controller]: STOPPED->IDLE
level-controller.ts:171 [log] > [level-controller]: manifest loaded, 2 level(s) found, first bitrate: 3218492
buffer-controller.ts:136 [log] > 2 bufferCodec event(s) expected
hls.ts:355 [log] > startLoad(-1)
level-controller.ts:250 [log] > [level-controller]: switching to level 1 from -1
audio-track-controller.ts:134 [log] > [audio-track-controller]: Updating audio tracks, 1 track(s) found in "audio1" group-id
audio-track-controller.ts:185 [log] > [audio-track-controller]: Now switching to audio-track index 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: STOPPED->IDLE
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->WAITING_TRACK
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 1 with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b3218492_vo_sfm4s.m3u8
base-stream-controller.ts:1275 [log] > [stream-controller]: STOPPED->IDLE
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_TRACK->STOPPED
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: STOPPED->WAITING_TRACK
base-stream-controller.ts:1275 [log] > [subtitle-stream-controller]: IDLE->STOPPED
base-stream-controller.ts:1275 [log] > [subtitle-stream-controller]: STOPPED->IDLE
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 1 in 2000 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 1 loaded [814016521,814016530], cc [0, 0] duration:20
base-stream-controller.ts:1037 [log] > [stream-controller]: Live playlist - first load, unknown sliding
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 20.000
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment initSegment cc: 0 level: 1, target: 0
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016521-814016530]
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 1999 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016521,814016530],duration:19.992
base-stream-controller.ts:1037 [log] > [audio-stream-controller]: Live playlist - first load, unknown sliding
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_TRACK->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment initSegment cc: 0 track: 0, target: 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->IDLE
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: initSegment of level 1 
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016526 cc: 0 of [814016521-814016530] level: 1, target: 11.002
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->IDLE
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: initSegment of track 0 
audio-stream-controller.ts:807 [log] > [audio-stream-controller]: Waiting for video PTS in continuity counter 0 of live stream before loading audio fragment 814016526 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->WAITING_INIT_PTS
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_INIT_PTS->IDLE
audio-stream-controller.ts:807 [log] > [audio-stream-controller]: Waiting for video PTS in continuity counter 0 of live stream before loading audio fragment 814016526 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->WAITING_INIT_PTS
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_INIT_PTS->IDLE
transmuxer-interface.ts:66 [log] > demuxing in webworker
transmuxer-interface.ts:180 [log] > [transmuxer-interface, main]: Starting new transmux session for sn: 814016526 p: -1 level: 1 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 10
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016526 of level 1
audio-stream-controller.ts:807 [log] > [audio-stream-controller]: Waiting for video PTS in continuity counter 0 of live stream before loading audio fragment 814016526 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->WAITING_INIT_PTS
blob:https://hls-js-…b7-03faa5cf9f71:603 [log] >
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016526 of level 1
stream-controller.ts:1211 [log] > [stream-controller]: Init video buffer, container:video/mp4, codecs[level/parsed]=[avc1.42c028/avc1.42c028]
audio-stream-controller.ts:112 [log] > [audio-stream-controller]: InitPTS for cc: 0 found from main: 1628033041.461
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_INIT_PTS->IDLE
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016526 cc: 0 of [814016521-814016530] track: 0, target: 11.006
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
transmuxer-interface.ts:66 [log] > demuxing in webworker
transmuxer-interface.ts:180 [log] > [transmuxer-interface, audio]: Starting new transmux session for sn: 814016526 p: -1 level: 0 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 9.984
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016526 of level 0
blob:https://hls-js-…30-0f915901df34:603 [log] >
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016526 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
audio-stream-controller.ts:821 [log] > [audio-stream-controller]: Switching audio track : flushing all audio
audio-stream-controller.ts:769 [log] > [audio-stream-controller]: Init audio buffer, container:audio/mp4, codecs[parsed]=[mp4a.40.2]
buffer-controller.ts:704 [log] > [buffer-controller]: creating sourceBuffer(video/mp4;codecs=avc1.42c028)
buffer-controller.ts:704 [log] > [buffer-controller]: creating sourceBuffer(audio/mp4;codecs=mp4a.40.2)
stream-controller.ts:809 [log] > [stream-controller]: Alternate track found, use video.buffered to schedule main fragment loading
buffer-controller.ts:817 [log] > [buffer-controller]: Removing [0,20] from the audio SourceBuffer
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016526 of track 0 [10.001,12.021]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016527 cc: 0 of [814016521-814016530] track: 0, target: 12.021
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016526 of level 1 [10.000,12.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016527 cc: 0 of [814016521-814016530] level: 1, target: 12
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
stream-controller.ts:988 [log] > [stream-controller]: seek to target start position 11.035499999999999 from current time 0
base-stream-controller.ts:194 [log] > [stream-controller]: media seeking to 11.035, state: FRAG_LOADING
base-stream-controller.ts:194 [log] > [audio-stream-controller]: media seeking to 11.035, state: FRAG_LOADING
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016527 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016527 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016527 of track 0 [10.001,14.018]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016528 cc: 0 of [814016521-814016530] track: 0, target: 14.018
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016528 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016528 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016528 of track 0 [10.001,16.015]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016529 cc: 0 of [814016521-814016530] track: 0, target: 16.015
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
stream-controller.ts:530 [log] > [stream-controller]: Media seeked to 11.035
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016529 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016529 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016529 of track 0 [10.001,18.012]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016530 cc: 0 of [814016521-814016530] track: 0, target: 18.012
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
favicon.ico:1 GET https://hls-js-214a1a90-214b-4c4d-a32a-d2d2f9d2824c.netlify.app/favicon.ico 404
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016530 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016530 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016530 of track 0 [10.001,20.009]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016527 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016527 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016527 of level 1 [10.000,14.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016528 cc: 0 of [814016521-814016530] level: 1, target: 14
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016528 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016528 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016528 of level 1 [10.000,16.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016529 cc: 0 of [814016521-814016530] level: 1, target: 16
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016529 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016529 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016529 of level 1 [10.000,18.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016530 cc: 0 of [814016521-814016530] level: 1, target: 18
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016530 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016530 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016530 of level 1 [10.000,20.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 1 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b3218492_vo_sfm4s.m3u8?_HLS_skip=YES
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016522-814016531]
base-playlist-controller.ts:121 [log] > [audio-track-controller]: live playlist 0 REFRESHED 814016531--1
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 1999 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016522,814016531],duration:19.99180045351474
base-stream-controller.ts:1029 [log] > [audio-stream-controller]: Live playlist sliding:1.997
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016531 cc: 0 of [814016522-814016531] track: 0, target: 20.009
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 1 REFRESHED 814016531--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 1 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 1 loaded [814016522,814016531], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:2.000
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016531 cc: 0 of [814016522-814016531] level: 1, target: 20
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 22.000
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016531 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016531 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016531 of track 0 [10.001,22.006]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016531 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016531 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016531 of level 1 [10.000,22.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016524-814016533]
base-playlist-controller.ts:121 [log] > [audio-track-controller]: live playlist 0 REFRESHED 814016533--1
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 2102 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016524,814016533],duration:20.015716553287987
base-stream-controller.ts:1029 [log] > [audio-stream-controller]: Live playlist sliding:5.990
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016532 cc: 0 of [814016524-814016533] track: 0, target: 22.006
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 1 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b3218492_vo_sfm4s.m3u8?_HLS_skip=YES
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 1 REFRESHED 814016533--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 1 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 1 loaded [814016524,814016533], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:6.000
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016532 cc: 0 of [814016524-814016533] level: 1, target: 22
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 26.000
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016532 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016532 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016532 of track 0 [10.001,24.003]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment 814016533 cc: 0 of [814016524-814016533] track: 0, target: 24.003
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [audio-stream-controller]: Loaded fragment 814016533 of level 0
blob:https://hls-js-…30-0f915901df34:935 [log] > [transmuxer.ts]: Flushed fragment 814016533 of level 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: 814016533 of track 0 [10.001,26.023]
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: PARSED->IDLE
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016532 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016532 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016532 of level 1 [10.000,24.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016533 cc: 0 of [814016524-814016533] level: 1, target: 24
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016533 of level 1
blob:https://hls-js-…b7-03faa5cf9f71:935 [log] > [transmuxer.ts]: Flushed fragment 814016533 of level 1
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: 814016533 of level 1 [10.000,26.000]
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSED->IDLE
hls.ts:462 [log] > set loadLevel:0
level-controller.ts:250 [log] > [level-controller]: switching to level 0 from 1
audio-track-controller.ts:134 [log] > [audio-track-controller]: Updating audio tracks, 1 track(s) found in "audio2" group-id
audio-track-controller.ts:219 [warn] > [audio-track-controller]: No track found for running audio group-ID: audio2
selectInitialTrack @ audio-track-controller.ts:219
switchLevel @ audio-track-controller.ts:139
onLevelSwitching @ audio-track-controller.ts:106
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
set @ level-controller.ts:261
set @ level-controller.ts:282
set @ hls.ts:463
onclick @ (index):1
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->ERROR
audio-stream-controller.ts:622 [warn] > [audio-stream-controller]: audioTrackLoadError while loading frag, switching to ERROR state
onError @ audio-stream-controller.ts:622
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
selectInitialTrack @ audio-track-controller.ts:221
switchLevel @ audio-track-controller.ts:139
onLevelSwitching @ audio-track-controller.ts:106
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
set @ level-controller.ts:261
set @ level-controller.ts:282
set @ hls.ts:463
onclick @ (index):1
main.js:722 Error event: {type: "mediaError", details: "audioTrackLoadError", fatal: true}
(anonymous) @ main.js:722
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
selectInitialTrack @ audio-track-controller.ts:221
switchLevel @ audio-track-controller.ts:139
onLevelSwitching @ audio-track-controller.ts:106
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
set @ level-controller.ts:261
set @ level-controller.ts:282
set @ hls.ts:463
onclick @ (index):1
main.js:835 Fatal error : audioTrackLoadError
(anonymous) @ main.js:835
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
selectInitialTrack @ audio-track-controller.ts:221
switchLevel @ audio-track-controller.ts:139
onLevelSwitching @ audio-track-controller.ts:106
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
set @ level-controller.ts:261
set @ level-controller.ts:282
set @ hls.ts:463
onclick @ (index):1
hls.ts:386 [log] > recoverMediaError
hls.ts:313 [log] > detachMedia
buffer-controller.ts:162 [log] > [buffer-controller]: media source detaching
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->STOPPED
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: ERROR->STOPPED
base-stream-controller.ts:1275 [log] > [subtitle-stream-controller]: IDLE->STOPPED
hls.ts:304 [log] > attachMedia
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 at sn 814016533 part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8?_HLS_msn=814016533
buffer-controller.ts:743 [log] > [buffer-controller]: Media source opened
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 26.000
stream-controller.ts:137 [log] > [stream-controller]: Override startPosition with lastCurrentTime @16.120
base-stream-controller.ts:1275 [log] > [stream-controller]: STOPPED->IDLE
level-controller.ts:250 [log] > [level-controller]: switching to level 0 from 0
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8
playlist-loader.ts:219 [log] > [playlist-loader]: aborting previous loader for type: level
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->WAITING_LEVEL
audio-stream-controller.ts:132 [log] > [audio-stream-controller]: Override startPosition with lastCurrentTime @16.130
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: STOPPED->IDLE
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->WAITING_TRACK
base-stream-controller.ts:1275 [log] > [subtitle-stream-controller]: STOPPED->IDLE
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 0 in 2000 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 0 loaded [814016524,814016533], cc [0, 0] duration:20
base-stream-controller.ts:1037 [log] > [stream-controller]: Live playlist - first load, unknown sliding
base-stream-controller.ts:1275 [log] > [stream-controller]: WAITING_LEVEL->IDLE
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment initSegment cc: 0 level: 0, target: 0
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->IDLE
base-stream-controller.ts:454 [log] > [stream-controller]: Buffered main sn: initSegment of level 0 
base-stream-controller.ts:543 [log] > [stream-controller]: Loading fragment 814016529 cc: 0 of [814016524-814016533] level: 0, target: 17.001
base-stream-controller.ts:1275 [log] > [stream-controller]: IDLE->FRAG_LOADING
transmuxer-interface.ts:66 [log] > demuxing in webworker
transmuxer-interface.ts:180 [log] > [transmuxer-interface, main]: Starting new transmux session for sn: 814016529 p: -1 level: 0 id: 1
        discontinuity: true
        trackSwitch: true
        contiguous: false
        accurateTimeOffset: false
        timeOffset: 16
base-stream-controller.ts:317 [log] > [stream-controller]: Loaded fragment 814016529 of level 0
214eda83-8ec1-406b-976b-c862fb33b788:603 [log] >
base-stream-controller.ts:1275 [log] > [stream-controller]: FRAG_LOADING->PARSING
stream-controller.ts:1211 [log] > [stream-controller]: Init video buffer, container:video/mp4, codecs[level/parsed]=[avc1.42c028/avc1.42c028]
214eda83-8ec1-406b-976b-c862fb33b788:935 [log] > [transmuxer.ts]: Flushed fragment 814016529 of level 0
base-stream-controller.ts:1275 [log] > [stream-controller]: PARSING->PARSED
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016524-814016533]
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 2102 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016524,814016533],duration:21.019000000000002
timeline-chart.ts:709 Uncaught TypeError: Cannot read property 'start' of null
    at getPlaylistStart (timeline-chart.ts:709)
    at TimelineChart.updateLevelOrTrack (timeline-chart.ts:344)
    at TimelineChart.updateLevelOrTrack (main.js:1574)
    at EventEmitter.emit (index.js:203)
    at Hls.emit (hls.ts:244)
    at Hls.trigger (hls.ts:252)
    at PlaylistLoader.handlePlaylistLoaded (playlist-loader.ts:708)
    at PlaylistLoader.handleTrackOrLevelPlaylist (playlist-loader.ts:540)
    at PlaylistLoader.loadsuccess (playlist-loader.ts:340)
    at XhrLoader.readystatechange (xhr-loader.ts:190)
getPlaylistStart @ timeline-chart.ts:709
updateLevelOrTrack @ timeline-chart.ts:344
updateLevelOrTrack @ main.js:1574
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
handlePlaylistLoaded @ playlist-loader.ts:708
handleTrackOrLevelPlaylist @ playlist-loader.ts:540
loadsuccess @ playlist-loader.ts:340
readystatechange @ xhr-loader.ts:190
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.ts:127
load @ xhr-loader.ts:72
load @ playlist-loader.ts:304
onAudioTrackLoading @ playlist-loader.ts:178
emit @ index.js:182
emit @ hls.ts:244
trigger @ hls.ts:252
loadPlaylist @ audio-track-controller.ts:260
(anonymous) @ base-playlist-controller.ts:207
setTimeout (async)
playlistLoaded @ base-playlist-controller.ts:206
onAudioTrackLoaded @ audio-track-controller.ts:91
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
handlePlaylistLoaded @ playlist-loader.ts:708
handleTrackOrLevelPlaylist @ playlist-loader.ts:540
loadsuccess @ playlist-loader.ts:340
readystatechange @ xhr-loader.ts:190
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.ts:127
load @ xhr-loader.ts:72
load @ playlist-loader.ts:304
onAudioTrackLoading @ playlist-loader.ts:178
emit @ index.js:182
emit @ hls.ts:244
trigger @ hls.ts:252
loadPlaylist @ audio-track-controller.ts:260
(anonymous) @ base-playlist-controller.ts:207
setTimeout (async)
playlistLoaded @ base-playlist-controller.ts:206
onAudioTrackLoaded @ audio-track-controller.ts:91
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
handlePlaylistLoaded @ playlist-loader.ts:708
handleTrackOrLevelPlaylist @ playlist-loader.ts:540
loadsuccess @ playlist-loader.ts:340
readystatechange @ xhr-loader.ts:190
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.ts:127
load @ xhr-loader.ts:72
load @ playlist-loader.ts:304
onAudioTrackLoading @ playlist-loader.ts:178
emit @ index.js:182
emit @ hls.ts:244
trigger @ hls.ts:252
loadPlaylist @ audio-track-controller.ts:260
(anonymous) @ base-playlist-controller.ts:207
setTimeout (async)
playlistLoaded @ base-playlist-controller.ts:206
onAudioTrackLoaded @ audio-track-controller.ts:91
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
handlePlaylistLoaded @ playlist-loader.ts:708
handleTrackOrLevelPlaylist @ playlist-loader.ts:540
loadsuccess @ playlist-loader.ts:340
readystatechange @ xhr-loader.ts:190
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.ts:127
load @ xhr-loader.ts:72
load @ playlist-loader.ts:304
onAudioTrackLoading @ playlist-loader.ts:178
emit @ index.js:182
emit @ hls.ts:244
trigger @ hls.ts:252
loadPlaylist @ audio-track-controller.ts:260
startLoad @ base-playlist-controller.ts:52
(anonymous) @ hls.ts:357
startLoad @ hls.ts:356
onManifestLoaded @ level-controller.ts:195
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
handleMasterPlaylist @ playlist-loader.ts:445
loadsuccess @ playlist-loader.ts:342
readystatechange @ xhr-loader.ts:190
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.ts:127
load @ xhr-loader.ts:72
load @ playlist-loader.ts:304
onManifestLoading @ playlist-loader.ts:149
emit @ index.js:203
emit @ hls.ts:244
trigger @ hls.ts:252
loadSource @ hls.ts:344
loadSelectedStream @ main.js:371
(anonymous) @ main.js:130
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8?_HLS_skip=YES
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 0 REFRESHED 814016534--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 0 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 0 loaded [814016525,814016534], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:8.000
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 28.000
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016526-814016535]
base-playlist-controller.ts:121 [log] > [audio-track-controller]: live playlist 0 REFRESHED 814016535--1
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 2002 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016526,814016535],duration:20.016000000000002
base-stream-controller.ts:1037 [log] > [audio-stream-controller]: Live playlist - first load, unknown sliding
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: WAITING_TRACK->IDLE
base-stream-controller.ts:543 [log] > [audio-stream-controller]: Loading fragment initSegment cc: 0 track: 0, target: 0
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: IDLE->FRAG_LOADING
base-stream-controller.ts:1275 [log] > [audio-stream-controller]: FRAG_LOADING->IDLE
base-stream-controller.ts:454 [log] > [audio-stream-controller]: Buffered audio sn: initSegment of track 0 
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8?_HLS_skip=YES
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 0 REFRESHED 814016535--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 0 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 0 loaded [814016526,814016535], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:10.000
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 30.000
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016527-814016536]
base-playlist-controller.ts:121 [log] > [audio-track-controller]: live playlist 0 REFRESHED 814016536--1
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 1999 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016527,814016536],duration:19.993000000000002
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8?_HLS_skip=YES
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 0 REFRESHED 814016536--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 0 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 0 loaded [814016527,814016536], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:12.000
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 32.000
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0
audio-track-controller.ts:87 [log] > [audio-track-controller]: audioTrack 0 loaded [814016528-814016537]
base-playlist-controller.ts:121 [log] > [audio-track-controller]: live playlist 0 REFRESHED 814016537--1
base-playlist-controller.ts:197 [log] > [audio-track-controller]: reload live playlist 0 in 1999 ms
audio-stream-controller.ts:437 [log] > [audio-stream-controller]: Track 0 loaded [814016528,814016537],duration:19.993000000000002
level-controller.ts:523 [log] > [level-controller]: Attempt loading level index 0 at sn undefined part undefined with URL-id 0 https://1011.wtvserver.xyz/channel/2340/amlst:live/chunklist_w806684715_b1610486_vo_sfm4s.m3u8?_HLS_skip=YES
base-playlist-controller.ts:121 [log] > [level-controller]: live playlist 0 REFRESHED 814016538--1
base-playlist-controller.ts:197 [log] > [level-controller]: reload live playlist 0 in 2100 ms
stream-controller.ts:603 [log] > [stream-controller]: Level 0 loaded [814016529,814016538], cc [0, 0] duration:20
base-stream-controller.ts:1029 [log] > [stream-controller]: Live playlist sliding:16.000
buffer-controller.ts:635 [log] > [buffer-controller]: Updating Media Source duration to 36.000
audio-track-controller.ts:258 [log] > [audio-track-controller]: loading audio-track playlist for id: 0

Chrome media internals output

No response

robwalch commented 2 years ago

Host 1011.wtvserver.xyz could not be resolved. If you are still able to reproduce the issue with v1.2.1 please reply with a new stream that can be used to reproduce the issue, and a maintainer will reopen the issue.