Forward ExoPlaybackException exceptions to the Flutter plugin (#80)

* Forward ExoPlaybackException exceptions to playbackEventStream

* Ignore error events in secondary streams
This commit is contained in:
Andrea Jonus 2020-05-01 00:52:58 +10:00 committed by GitHub
parent 571743a11f
commit 3dfcef6ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -349,6 +349,10 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener, Met
prepareResult.error(errorCode, errorMsg, null);
prepareResult = null;
}
if (eventSink != null) {
eventSink.error(errorCode, errorMsg, null);
}
}
private void transition(final PlaybackState newState) {