muslimtv / flutter_playout

AV Playout in Flutter
BSD 3-Clause "New" or "Revised" License
154 stars 93 forks source link

Crash when play with wrong url! #3

Closed phanbaohuy96 closed 5 years ago

phanbaohuy96 commented 5 years ago

When i play with url isn't audio link, the app get crash. Can you validate the url in the native platform?

KhuramKhalid commented 5 years ago

Try using v1.0.10. Implemented better exception handling so player should not cause the app to crash, instead you should get some reasonable message in onError callback.

phanbaohuy96 commented 5 years ago

on iOS, i can't play the audio link. Can you check this? @KhuramKhalid

KhuramKhalid commented 5 years ago

Please try 1.0.11

phanbaohuy96 commented 5 years ago

Thanks, i will try and if any happened i will report back to you. Tks for support.

phanbaohuy96 commented 5 years ago

Some issues happened. That is i play audio and i stop it and then i replay this audio the observer doesn't trigger any event after that a stop it and get crash on iOS

KhuramKhalid commented 5 years ago

Some issues happened. That is i play audio and i stop it and then i replay this audio the observer doesn't trigger any event after that a stop it and get crash on iOS

I'm not able to reproduce this. Are you playing a live stream? Is there anything else you're doing in the callbacks that might cause this? Also please make sure to try on a real device as well. The player doesn't work properly on simulator.