You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to retrieve metadata for all players. However, I've encountered instances where a player doesn't possess any metadata, rendering the plugin ineffective. Is there a method to verify its existence?
Here is the error message:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a
subtype of type 'DBusUint32' in type cast
#0 new Metadata.fromMap (package:mpris/mpris.dart:238:41)
#1 MPRISPlayer.getMetadata (package:mpris/mpris.dart:130:16)
<asynchronous suspension>
Upon reviewing various forks of your repository, I came across the following one: https://github.com/FlafyDev/dart-mpris. It appears to address the issue I encountered. I recommend incorporating these changes into your main repository by merging them.
I'm attempting to retrieve metadata for all players. However, I've encountered instances where a player doesn't possess any metadata, rendering the plugin ineffective. Is there a method to verify its existence?
Here is the error message:
dart-mpris/lib/mpris.dart
Lines 230 to 253 in 503ac62
I'll try to fix it by myself and will make a pull request.
The text was updated successfully, but these errors were encountered: