Display Video.js errors instead letting the player crash #612
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue: #434
Before:
![Screenshot 2024-08-02 at 4 50 52 PM](https://private-user-images.githubusercontent.com/1331659/354721363-6f5dae59-af56-43c4-b97d-5309a0174043.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODE3OTUsIm5iZiI6MTczOTI4MTQ5NSwicGF0aCI6Ii8xMzMxNjU5LzM1NDcyMTM2My02ZjVkYWU1OS1hZjU2LTQzYzQtYjk3ZC01MzA5YTAxNzQwNDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM0NDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzVjZTliYjYyZWY4YTgxMDIyMzYzMTE5OTQ2NTgwNTI2NmRhMmUwOWI2NGZiYmM2YWY2ODFkMmU3MDBkZWEwOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.rEYDZRXytxksf8oN4ox2Rs6UQdzdt4GmVyE9-5L06go)
After:
![Screenshot 2024-08-02 at 5 07 53 PM](https://private-user-images.githubusercontent.com/1331659/354724486-19689687-eba9-4e8d-8558-f56d394f9bea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODE3OTUsIm5iZiI6MTczOTI4MTQ5NSwicGF0aCI6Ii8xMzMxNjU5LzM1NDcyNDQ4Ni0xOTY4OTY4Ny1lYmE5LTRlOGQtODU1OC1mNTZkMzk0ZjliZWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM0NDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDhmZTBlZDlhNTkxYTE1NTU2ZTMyZTEwNzc4YmFhYTQxZmUwODBjNDk0MDcxYzZlMjZmOTRjZGMyZTNjMjhlMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.zUONC3nnxQTp5iaiv-n18f741b2RTvc6nAyGaxjW8XE)
The error displays on a dismiss-able modal, without breaking the player. Once the modal is closed the user is able to select a different source from the quality selector menu.