Skip to content

Commit

Permalink
fix(ios): pause returns false (#14114)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahFaqeir authored and hansemannn committed Sep 16, 2024
1 parent d75fc9e commit e577bce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions iphone/Classes/TiMediaAudioPlayerProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@ - (void)handleTimeControlStatusNotification:(NSNotification *)note
if (_player.timeControlStatus == AVPlayerTimeControlStatusPlaying) {
_state = TiAudioPlayerStatePlaying;
} else if (_player.timeControlStatus == AVPlayerTimeControlStatusPaused) {
if (_player.currentItem.currentTime.value == 0.0 || oldState == TiAudioPlayerStateStopping) {
_state = TiAudioPlayerStateStopped;
} else {
_state = TiAudioPlayerStatePaused;
}
_state = TiAudioPlayerStatePaused;
} else if (_player.timeControlStatus == AVPlayerTimeControlStatusWaitingToPlayAtSpecifiedRate) {
_state = TiAudioPlayerStateWaitingForQueueToStart;
}
Expand Down

0 comments on commit e577bce

Please sign in to comment.