Relative Content

Tag Archive for flutterandroid-tvjust-audio

Handle playback error from just_audio package in Flutter

I want to make an app that can playing audios in Android TV using just_audio Flutter package. I want to use try-catch in Flutter to handle the error when I using audio that cannot play due of com.google.android.exoplayer2.ExoPlaybackException: Source error. But it didn’t work when I try using try-catch in .durationStream.listen, .positionStream.listen, .currentIndexStream.listen and anywhere I try to put try-catch.