Closed krishnaprasadgandrath-nooor closed 10 months ago
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
if (mode != null) {
await setPlayerMode(mode);
}
if (volume != null) {
await setVolume(volume);
}
if (balance != null) {
await setBalance(balance);
}
if (ctx != null) {
await setAudioContext(ctx);
}
if (position != null) {
await seek(position);
}
return resume();
}
@Gustl22 is the code change above correct, or is there any issue??
@Gustl22 please see to it..
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 ```dart import 'dart:async'; import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/material.dart'; import 'package:uuid/uuid.dart'; import 'audio_player_service.dart'; void main(ListAffected 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
``` my full logs or a link to a gist ``` Flutter doctor: ``` Output of: flutter doctor -v ```Related issues / more information
No response
Working on PR
no way