AbrController.js - Uncaught TypeError: Cannot read property 'type' of null
Created by: akeco
Environment
- [] The MPD passes the DASH-IF Conformance Tool on https://conformance.dashif.org/
-
The stream has correct Access-Control-Allow-Origin headers (CORS) -
There are no network errors such as 404s in the browser console when trying to play the stream -
The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ -
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 (Catchup): https://flussonic-local.cdn.warpcache.net/Widevine-production/index-1576152000-2700.mpd
- Catchup link has lifetime about 10h, after that it's not valid
- Widevine license url: https://api.wecastdemo.com/widevine/get_license?t=ZjY3YTUxMWJjZTIwZGViMjBhN2ZhOTRjNWY2OTU2NTI5NmRhMmE1YzAwYjQxNTgwNzc0ZmUzMDhmYTQ3ODYwZb3OYwGC4WGu%2BPAf1IUW46sDVY8aRsoahJ%2FkG6DHm%2FRNbjtiJC54eeiKGuE%2BUUIfoFmdvULZ7apB8%2FMTrfHO5ITuZwmYRIPXfgNQlqy6wz4tcxX94eAZyNpK4Wlgv%2BHicWkaj62s7bJMszAd6R%2FSU3WkzaiVdwd9WA9dqZBIdEFixO7YhNALlYRbGqPtNe71Mzy1Seh3p7n7jz8x4PCiQFVPkFEvzlrIOFPkCoXjOLwOxm%2Bw0%2FvpE4De3nb8%2Fg0ehIxazpatdENwvQrgSyCy41C5tVY%2B41CGUbejrBMih3BcUbV31GjfR2XmiZ5wcuVikg%3D%3D
- Dash.js version: v3.0.1
- Browser name/version: Chrome/78.0.3904.108
- OS name/version: Ubuntu/19.04
Steps to reproduce
Used in React Player component, just set url and widevine license url from above.
Observed behaviour
Video doesn't play and shows Uncaught TypeError in the console. The same video stream and license url works fine on theoplayer and bitmovin player demos.
Console output
Uncaught TypeError: Cannot read property 'type' of null at Object.updateTopQualityIndex (AbrController.js:481) at Stream.js:390 at K (Stream.js:471) at Stream.js:510 at Object.activate (Stream.js:153) at de (StreamController.js:562) at MediaSource.a (StreamController.js:535)