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:
Tarek BAZINE 2020-04-20 06:19:43 +02:00 committed by GitHub
parent e02f59cd31
commit 5147a52397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 133 additions and 122 deletions

View file

@ -19,8 +19,13 @@ class _MyAppState extends State<MyApp> {
void initState() {
super.initState();
_player = AudioPlayer();
_player.setUrl(
"https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3");
_player
.setUrl(
"https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3")
.catchError((error) {
// catch audio error ex: 404 url, wrong url ...
print(error);
});
}
@override