We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8108ff4 commit d56f40fCopy full SHA for d56f40f
1 file changed
packages/audioplayers_web/lib/wrapped_player.dart
@@ -66,6 +66,8 @@ class WrappedPlayer {
66
streamsInterface.emitPosition(playerId, toDuration(p.currentTime));
67
});
68
playerEndedSubscription = p.onEnded.listen((_) {
69
+ pausedAt = 0;
70
+ player?.currentTime = 0;
71
streamsInterface.emitPlayerState(playerId, PlayerState.stopped);
72
streamsInterface.emitComplete(playerId);
73
@@ -112,8 +114,9 @@ class WrappedPlayer {
112
114
}
113
115
116
void stop() {
- pausedAt = 0;
117
_cancel();
118
119
120
121
122
void seek(int position) {
0 commit comments