Skip to content

Uncaught TypeError: Cannot read property 'detectMultipleBufferedRanges' of null #156

Closed
@sanbornhilland

Description

@sanbornhilland

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.

Metadata

Metadata

Assignees

Labels

status: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions