From e577bce9b640974ce92a9ad209846fa2f5b7915b Mon Sep 17 00:00:00 2001 From: Abdullah Al-Faqeir Date: Mon, 16 Sep 2024 12:00:23 +0300 Subject: [PATCH] fix(ios): pause returns false (#14114) --- iphone/Classes/TiMediaAudioPlayerProxy.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/iphone/Classes/TiMediaAudioPlayerProxy.m b/iphone/Classes/TiMediaAudioPlayerProxy.m index 59e47ad36a9..12941a0c393 100644 --- a/iphone/Classes/TiMediaAudioPlayerProxy.m +++ b/iphone/Classes/TiMediaAudioPlayerProxy.m @@ -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; }