Skip to content

The audioplayers plugin for Windows has an issue related to audio seeking precision #1547

@SNNafi

Description

@SNNafi

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

The audioplayers plugin for Windows has an issue related to audio seeking precision, where it is limited to seconds instead of milliseconds. This limitation prevents users from accurately seeking to specific points within an audio file, leading to imprecise playback control and usability issues.
Steps to Reproduce:
Install the Audioplayers plugin in a Windows environment.
Load an audio file using the plugin.
Attempt to seek to a specific point within the audio file using milliseconds (e.g., 1570 milliseconds).

Expected behaviour

The audio playback should accurately seek to the specified millisecond point within the audio file, allowing precise control over playback position.

Steps to reproduce

audioPlayer = AudioPlayer(); audioPlayer.seek(Duration(milliseconds: 1560));

It works perfectly on other platforms. Tested in Android, iOS, and macOS. But in Windows, it doesn't seek to exact 1560

Code sample

audioPlayer = AudioPlayer(); audioPlayer.seek(Duration(milliseconds: 1560));

Affected platforms

Windows

Platform details

N/A

AudioPlayers Version

main

Build mode

debug, profile, release

Audio Files/URLs/Sources

N/A

Screenshots

N/A

Logs

N/A

Related issues / more information

N/A

Working on PR

yeah

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions