mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 22:27:14 +02:00
iOS Update Realm schema version for new setting, update remote transport controls on device settings updated
This commit is contained in:
@@ -588,7 +588,7 @@ class AudioPlayer: NSObject {
|
||||
}
|
||||
|
||||
// MARK: - Now playing
|
||||
private func setupRemoteTransportControls() {
|
||||
func setupRemoteTransportControls() {
|
||||
DispatchQueue.runOnMainQueue {
|
||||
UIApplication.shared.beginReceivingRemoteControlEvents()
|
||||
}
|
||||
|
||||
@@ -135,6 +135,10 @@ class PlayerHandler {
|
||||
)
|
||||
}
|
||||
|
||||
public static func updateRemoteTransportControls() {
|
||||
self.player?.setupRemoteTransportControls()
|
||||
}
|
||||
|
||||
// MARK: - Helper logic
|
||||
|
||||
private static func cleanupOldSessions(currentSessionId: String?) {
|
||||
|
||||
Reference in New Issue
Block a user