Issue
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(position, the position argument can not be null, null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
<asynchronous suspension>
#2 MethodChannelAudioPlayer.seek (package:just_audio_platform_interface/method_channel_just_audio.dart:152:34)
<asynchronous suspension>
#3 AudioPlayer.seek (package:just_audio/just_audio.dart:1070:9)
<asynchronous suspension>
Using just on Windows 10_ audio_ Windows to compile the fluent application, but the player cannot seek duration
Solution
After 1 day debugging I solve this issue with changing line 225 in the player.hpp
file inside just_audio_windows/windows/player.hpp
.
change it from:
const auto* position = std::get_if<int_64_t>(ValueOrNull(*args, "position"));
to:
const auto* position = std::get_if<int>(ValueOrNull(*args, "position"));
Answered By - Amirshk
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.