Skip to content

Commit

Permalink
fix: Windows Failed to seekTo longer than 3:30s (#1125)
Browse files Browse the repository at this point in the history
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
  • Loading branch information
maintel and luanpotter committed May 21, 2022
1 parent 10bd28a commit 8db4dca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void AudioplayersWindowsPlugin::HandleMethodCall(
result->Success(EncodableValue(1));
} else if (method_call.method_name().compare("seek") == 0) {
auto position = GetArgument<int>("position", args, (int)(player->GetPosition() / 10000));
player->SeekTo(position * 10000);
player->SeekTo(static_cast<int64_t>(position * 10000.0));
result->Success(EncodableValue(1));
} else if (method_call.method_name().compare("setSourceUrl") == 0) {
auto url = GetArgument<std::string>("url", args, std::string());
Expand Down

0 comments on commit 8db4dca

Please sign in to comment.