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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue