Skip to content

Commit

Permalink
fix: update loaded audio source position
Browse files Browse the repository at this point in the history
  • Loading branch information
addie9000 committed Feb 8, 2022
1 parent b1a7d50 commit db71782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion just_audio/darwin/Classes/AudioPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ - (void)load:(NSDictionary *)source initialPosition:(CMTime)initialPosition init
}
_loadResult = result;
_processingState = loading;
[self updatePosition];
_index = (initialIndex != (id)[NSNull null]) ? [initialIndex intValue] : 0;
// Remove previous observers
if (_indexedAudioSources) {
Expand Down Expand Up @@ -628,6 +627,7 @@ - (void)load:(NSDictionary *)source initialPosition:(CMTime)initialPosition init
[self addItemObservers:source.playerItem];
source.playerItem.audioSource = source;
}
[self updatePosition];
[self updateOrder];
// Set up an empty player
if (!_player) {
Expand Down

0 comments on commit db71782

Please sign in to comment.