Uncaught TypeError: Cannot read property 'detectMultipleBufferedRanges' of null #156
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
If you unload the player on a Network Failure error, and wait a few minutes you'll get the error: Uncaught TypeError: Cannot read property 'detectMultipleBufferedRanges' of null
To recreate this in the sample app, call app.player_.unload() in app.onPlayerError_. Then, start playback and kill your network. You'll get a Network Error and the player will unload. After several seconds you'll get the TypeError because the onUpdate_() method will fire and try to read this.sbm.detectMultipleBufferedRanges but this.sbm is null. Presumably the updatetimer should get cancelled when unload() is called. CancelUpdateTimer_ does get called on unload() but then right after it setUpdateTimer_() gets called which kicks off another onUpdate_().
So far this doesn't seem to cause any major problems because when you reach this point you have to load new content to play again anyway so I don't think this is really critical, it's just not pretty to have this error showing up.
The text was updated successfully, but these errors were encountered: