diff --git a/packages/audioplayers_windows/windows/audioplayers_windows_plugin.cpp b/packages/audioplayers_windows/windows/audioplayers_windows_plugin.cpp index 1702321a7..88be6b444 100644 --- a/packages/audioplayers_windows/windows/audioplayers_windows_plugin.cpp +++ b/packages/audioplayers_windows/windows/audioplayers_windows_plugin.cpp @@ -156,7 +156,7 @@ void AudioplayersWindowsPlugin::HandleMethodCall( result->Success(EncodableValue(1)); } else if (method_call.method_name().compare("seek") == 0) { auto position = GetArgument("position", args, (int)(player->GetPosition() / 10000)); - player->SeekTo(position * 10000); + player->SeekTo(static_cast(position * 10000.0)); result->Success(EncodableValue(1)); } else if (method_call.method_name().compare("setSourceUrl") == 0) { auto url = GetArgument("url", args, std::string());