Refactor audio
Opened this issue · 0 comments
novas1r1 commented
Throws tons of errors in the console atm:
This happens when a plugin sends messages to the framework side before the framework has had an opportunity to register a listener. See the ChannelBuffers API documentation for details on how to configure the channel to expect more messages, or to expect messages to get discarded:
https://api.flutter.dev/flutter/dart-ui/ChannelBuffers-class.html
A message on the xyz.luan/audioplayers channel was discarded before it could be handled.
This happens when a plugin sends messages to the framework side before the framework has had an opportunity to register a listener. See the ChannelBuffers API documentation for details on how to configure the channel to expect more messages, or to expect messages to get discarded:
https://api.flutter.dev/flutter/dart-ui/ChannelBuffers-class.html
Error: MissingPluginException(No implementation found for method audio.onCurrentPosition on channel xyz.luan/audioplayers)
at Object.throw_ [as throw] (http://localhost:60602/dart_sdk.js:5080:11)
at platform_channel.MethodChannel.new._invokeMethod (http://localhost:60602/packages/flutter/src/services/restoration.dart.lib.js:1567:21)
at _invokeMethod.next (<anonymous>)
at http://localhost:60602/dart_sdk.js:40641:33
at _RootZone.runUnary (http://localhost:60602/dart_sdk.js:40511:59)
at _FutureListener.thenAwait.handleValue (http://localhost:60602/dart_sdk.js:35438:29)
at handleValueCallback (http://localhost:60602/dart_sdk.js:35999:49)
at _Future._propagateToListeners (http://localhost:60602/dart_sdk.js:36037:17)
at [_completeWithValue] (http://localhost:60602/dart_sdk.js:35872:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:60602/dart_sdk.js:35906:35)
at Object._microtaskLoop (http://localhost:60602/dart_sdk.js:40778:13)
at _startMicrotaskLoop (http://localhost:60602/dart_sdk.js:40784:13)
at http://localhost:60602/dart_sdk.js:36261:9
Error: MissingPluginException(No implementation found for method audio.onCurrentPosition on channel xyz.luan/audioplayers)
at Object.throw_ [as throw] (http://localhost:60602/dart_sdk.js:5080:11)
at platform_channel.MethodChannel.new._invokeMethod (http://localhost:60602/packages/flutter/src/services/restoration.dart.lib.js:1567:21)
at _invokeMethod.next (<anonymous>)
at http://localhost:60602/dart_sdk.js:40641:33
at _RootZone.runUnary (http://localhost:60602/dart_sdk.js:40511:59)
at _FutureListener.thenAwait.handleValue (http://localhost:60602/dart_sdk.js:35438:29)
at handleValueCallback (http://localhost:60602/dart_sdk.js:35999:49)
at _Future._propagateToListeners (http://localhost:60602/dart_sdk.js:36037:17)
at [_completeWithValue] (http://localhost:60602/dart_sdk.js:35872:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:60602/dart_sdk.js:35906:35)
at Object._microtaskLoop (http://localhost:60602/dart_sdk.js:40778:13)
at _startMicrotaskLoop (http://localhost:60602/dart_sdk.js:40784:13)
at http://localhost:60602/dart_sdk.js:36261:9