Pause player on internet disconnect and show toast
What is it?
- [ ] Bugfix (user facing)
- [x] Feature (user facing)
- [ ] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)
Description of the changes in your PR
- pauses video player when internet disconnects with ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
- disables error notification setting isCatchableException = true
- adds toast method to error util
- modifies play() to prepare() video if video is not prepared
Before/After Screenshots/Screen Record
- Before:

- After:
Fixes the following issue(s)
- Fixes #8898
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence
- [x] I read the contribution guidelines.
@marevm ANU student?
There should be an option whether to pause player or not. Suppose you have an unstable/poor network connection then it will be really annoying to see the player paused every now and then having to click the play button manually.
There should be an option
Or, depending on what the timeout value is, the player could be set to pause just a little before that duration is completed, and keep trying to load until then.
see the player paused every now and then having to click the play button manually
Have you read 8898? The player closes completely at the moment, so this is already better @marevm ping (feel free to say you don't want to work on this anymore ;-) )
@marevm ?







