Open testeur-990 opened 2 weeks ago
Thanks for reporting this. We don't have the resources to debug such SmartTV issues at this point. Please try to identify the issue yourself and provide a PR. If a specific workaround is needed, it can be hidden behind a settings flag.
Environment
[X] The MPD passes the DASH-IF Conformance Tool on https://conformance.dashif.org/
[X] The stream has correct Access-Control-Allow-Origin headers (CORS)
[X] There are no network errors such as 404s in the browser console when trying to play the stream
[X] The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ
[X] The issue occurs in the latest reference client on http://reference.dashif.org/dash.js/ and not just on my page
Dash.js version:last version
Browser name/version:SmartTVs
Observed behavior
After a few minutes, the player freezes, and there is no playback for live streaming. We have observed that the player fails to find the necessary segments for audio and video, resulting in 'segment not found' errors in the logs.
Console output
[706794][BufferController][audio] Buffered range: 1727963527.184665 - 1727963549.947332, currentTime = 1727963547.181 " [706798][BufferController][audio] Buffered range: 1727963554.043332 - 1727963558.011332, currentTime = 1727963547.181 " [706801][BufferController][audio] Buffered range: 1727963560.059332 - 1727963993.979332, currentTime = 1727963547.181 " [706805][StreamProcessor][audio] Appended bytes for audio and stream id 8947157786443 " [706835][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [706838][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [707195][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 8947157786443 and media type video - Url: URL
" [707237][BufferController][video] Buffered range: 1727963527.861999 - 1727963549.861999, currentTime = 1727963547.181 " [707242][BufferController][video] Buffered range: 1727963553.861999 - 1727963555.861999, currentTime = 1727963547.181 " [707246][BufferController][video] Buffered range: 1727963577.861999 - 1727963993.861999, currentTime = 1727963547.181 " [707252][StreamProcessor][video] Appended bytes for video and stream id 8947157786443 " [707278][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [707285][DashHandler][video] video No segment found at index: 11. Wait for next loop " [707358][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [707362][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [709396][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [709399][DashHandler][video] video No segment found at index: 11. Wait for next loop " [709411][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [709415][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [709912][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [709916][DashHandler][video] video No segment found at index: 11. Wait for next loop " [709938][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [709941][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [710437][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [710441][DashHandler][video] video No segment found at index: 11. Wait for next loop " [710477][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [710480][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [710977][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [710979][DashHandler][video] video No segment found at index: 11. Wait for next loop " [711004][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [711012][DashHandler][audio] audio No segment found at index: 11. Wait for next loop " [711493][ScheduleController][video] Media segment needed for video and stream id 8947157786443 " [711496][DashHandler][video] video No segment found at index: 11. Wait for next loop " [711521][ScheduleController][audio] Media segment needed for audio and stream id 8947157786443 " [711527][DashHandler][audio] audio No segment found at index: 11. Wait for next loop
Expected behavior
The player should continue to play the stream without freezing, and all necessary audio and video segments should be available for playback at all times.
P.S.: At the moment, we can't share the URL of the stream because it's encrypted, but we will try to find a clear live stream that we can share with you. However, we have observed the following in the MPD: timeShiftBufferDepth="PT22.000S" minBufferTime="PT3.000S" minimumUpdatePeriod="PT6.000S" <SegmentTemplate timescale="90000" initialization="$RepresentationID$-init.m4s" media="$RepresentationID$-0-T-$Time$.m4s" presentationTimeOffset="7698936975817">
(We can share any other parameters that will help you analyze this issue.)
We are unsure if this is an issue with our streams or with the way you retrieve the last segment in the following function: function getSegmentByIndex(representation, index, lastSegmentTime) { checkConfig();