BufferController: toFixed returns a string, playback stop.
Created by: PatrikCarlander
Environment
All Environment
- Link to playable MPD file: Any MPD
- Dash.js version: v2.9.2
- Browser name/version: All Browses
- OS name/version: All OS
Observed behaviour
src/streaming/controllers/BufferController.js const bufferAhead = criticalBufferLevel - bufferToKeep; 273 mediaPlayerModel.setBufferToKeep(parseFloat(bufferToKeep).toFixed(5)); 274 mediaPlayerModel.setBufferAheadToKeep(parseFloat(bufferAhead).toFixed(5));
setBufferToKeep and setBufferAheadToKeep expect a number otherwise it throw an exception. toFixed returns a string
(Maybe you should seek for toFixed, to see if this mistake is also done elsewhere.)
Console output
Uncaught Invalid Arguments