File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,9 +237,7 @@ class THEOplayerRCTRemoteCommandsManager: NSObject {
237237 }
238238
239239 @objc private func onPreviousTrackCommand( _ event: MPRemoteCommandEvent ) -> MPRemoteCommandHandlerStatus {
240- if let player = self . player,
241- !self . isLive,
242- !self . inAd {
240+ if let player = self . player {
243241 if !self . executeAction ( for: . SKIP_TO_PREVIOUS) {
244242 if DEBUG_MEDIA_CONTROL_API { PrintUtils . printLog ( logText: " [NATIVE] Executing default Skip to previous action. " ) }
245243 if self . convertSkipToSeek {
@@ -254,9 +252,7 @@ class THEOplayerRCTRemoteCommandsManager: NSObject {
254252 }
255253
256254 @objc private func onNextTrackCommand( _ event: MPRemoteCommandEvent ) -> MPRemoteCommandHandlerStatus {
257- if let player = self . player,
258- !self . isLive,
259- !self . inAd {
255+ if let player = self . player {
260256 if !self . executeAction ( for: . SKIP_TO_NEXT) {
261257 if DEBUG_MEDIA_CONTROL_API { PrintUtils . printLog ( logText: " [NATIVE] Executing default Skip to next action. " ) }
262258 if self . convertSkipToSeek {
You can’t perform that action at this time.
0 commit comments