Redundant segment download when setQualityfor() is invoked many times
Created by: mannou440
Environment
- [x ] The MPD passes the DASH-IF Conformance Tool on http://dashif.org/conformance.html
- [ 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
- Link to playable MPD file:
- Dash.js version: 2.6.5
- Browser name/version: chrome
- OS name/version: ubuntu 16.04
Steps to reproduce
- Please provide clear steps to reproduce your problem
- If the bug is intermittent, give a rough frequency if possible
Observed behaviour
Hello ! In my project, I need to set the quality of each video segment to a predefined bitrate ( all the available bitrates should be streamed one after the other ). so I disabled the autoSwitchQuality mode and I used the "FRAGMENT_LOADING_COMPLETED" event to enforce the quality of each coming segment. Every thing seemed OK with the dash.js 2.4.0 (see "index3.html" logs in the attached "logs.pdf"). However, with dash.js 2.6.5, the player seems to stream each segment may times, each time it uses a different bitrate (see "index2.html" logs in the attached "logs.pdf"). My video file contains only video streams (no audio), and includes 3 bitrates (quality 1, 2 and 3 as mentioned in "logs.pdf").
Why does dash.js 2.6.5 report such an issue ? May it be a bug in the setQualityFor() function ?
Thank you !