-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AudioPlayer seek issue #1597
Comments
should I work on this bug?? |
@Dhanesh-Sawant that would be awesome :D |
@Gustl22 Please assign it to me.. |
@Gustl22 setting the source before calling seek in play() function, instead of setting it afterwards solves the issue, bec the AudioElement instance _player in wrappedPlayer class should be initailised before seeking. suggested code change:- Future play(
} |
@Gustl22 is the code change above correct, or is there any issue?? |
@Gustl22 please see to it.. |
# Description This PR is fixing the bug in which in web while initialising the play with duration specified, there was no seek happening, which means that it starts from the beginning itself. setting the source before calling seek in play() function, instead of setting it afterwards solves the issue. Closes #1597
Checklist
Current bug behaviour
Im using audioplayer to play audio files in flutterweb. whenever im trying to create a new player and play from specific duration it starts from 0 instead of provided duration, though i'm passing duration to it
Below is the code :
_audioPlayer.play(UrlSource(url), position: position);
Expected behaviour
I want to play the audio from specification duration of the audio clip
Steps to reproduce
Code sample
Code sample
audio_player_test_screen.dart
audio_player_service.dart
Affected platforms
web
Platform details
No response
AudioPlayers Version
5.0.0
Build mode
debug
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
Full Logs
Flutter doctor:
Related issues / more information
No response
Working on PR
no way
The text was updated successfully, but these errors were encountered: