If we fire the error event synchronously within the on_error callback, then we'll end up destroying the PlaybackManager inside its own callback and crash. Instead, queue a task to execute the error steps. This could happen with or without MSE, but I observed it occurring on YouTube with MSE when we hit a decoding error, since they immediately try another source when an error is reported.
115 B
115 B