Skip to content

Commit

Permalink
just_audio 0.9.20
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Feb 13, 2022
1 parent db71782 commit a24d975
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions just_audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.20

* Fix initial position on iOS/macOS when switching sources (@addie9000).

## 0.9.19

* Dispose players on iOS/macOS hot restart.
Expand Down
2 changes: 2 additions & 0 deletions just_audio/darwin/Classes/AudioPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ - (void)broadcastPlaybackEvent {
}

- (int)getCurrentPosition {
// XXX: During load, the second case will be selected returning 0.
// TODO: Provide a similar case as _seekPos for _initialPos.
if (CMTIME_IS_VALID(_seekPos)) {
return (int)(1000 * CMTimeGetSeconds(_seekPos));
} else if (_indexedAudioSources && _indexedAudioSources.count > 0) {
Expand Down
2 changes: 1 addition & 1 deletion just_audio/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: just_audio
description: A feature-rich audio player for Flutter. Loop, clip and concatenate any sound from any source (asset/file/URL/stream) in a variety of audio formats with gapless playback.
version: 0.9.19
version: 0.9.20
homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio

environment:
Expand Down

0 comments on commit a24d975

Please sign in to comment.