Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
changePlaybackPositionCommand を無効にする
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxAIRINxxx committed Feb 10, 2021
1 parent 3d13912 commit 216177b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions darwin/Classes/NotificationsHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,10 @@ class NotificationsHandler {
togglePlayPauseCommand.isEnabled = true
togglePlayPauseCommand.addTarget(handler: self.playOrPauseEvent)

if #available(iOS 9.1, *) {
let changePlaybackPositionCommand = remoteCommandCenter!.changePlaybackPositionCommand
changePlaybackPositionCommand.isEnabled = true
changePlaybackPositionCommand.addTarget(handler: self.onChangePlaybackPositionCommand)
}
// Radiko では seek, skip などはCMとのからみがあるので許可しないためコメントアウト
// let changePlaybackPositionCommand = remoteCommandCenter!.changePlaybackPositionCommand
// changePlaybackPositionCommand.isEnabled = true
// changePlaybackPositionCommand.addTarget(handler: self.onChangePlaybackPositionCommand)
}
}

Expand Down

0 comments on commit 216177b

Please sign in to comment.