Forward ExoPlaybackException exceptions to the Flutter plugin (#80)
* Forward ExoPlaybackException exceptions to playbackEventStream * Ignore error events in secondary streams
This commit is contained in:
parent
571743a11f
commit
3dfcef6ef1
2 changed files with 9 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue