Exoplayer exceptions (#76)
* exoplayer exceptions back to flutter * fix git ignore * fix dispose player * pump exoplayer exceptions * readme * code reformat * code reformat - with tabs * re-reformat code
This commit is contained in:
parent
e02f59cd31
commit
5147a52397
12 changed files with 133 additions and 122 deletions
10
README.md
10
README.md
|
|
@ -16,6 +16,7 @@ A Flutter plugin to play audio from URLs, files, assets and DASH/HLS streams. Th
|
|||
| set speed | ✅ | (untested) | (untested) | ✅ |
|
||||
| clip audio | ✅ | | | ✅ |
|
||||
| dispose | ✅ | ✅ | ✅ | ✅ |
|
||||
| catch player errors | ✅ | | | |
|
||||
|
||||
This plugin has been tested on Android and Web, and is being made available for testing on iOS. Please consider reporting any bugs you encounter [here](https://github.com/ryanheise/just_audio/issues) or submitting pull requests [here](https://github.com/ryanheise/just_audio/pulls).
|
||||
|
||||
|
|
@ -50,6 +51,15 @@ Release resources:
|
|||
await player.dispose();
|
||||
```
|
||||
|
||||
Catch player error:
|
||||
|
||||
```dart
|
||||
player.setUrl("https://s3.amazonaws.com/404-file.mp3").catchError((error) {
|
||||
// catch audio error ex: 404 url, wrong url ...
|
||||
print(error);
|
||||
});
|
||||
```
|
||||
|
||||
## Platform specific configuration
|
||||
|
||||
### Android
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue