Skip to content
Permalink
Browse files

Fix media player intergration on startup and swithcing between windows

Fix #2338
  • Loading branch information...
alejx committed Mar 2, 2019
1 parent 6c65d4c commit 49bab4a30ce4f78a540ce6a5a67f3b308bb57e3c
Showing with 3 additions and 0 deletions.
  1. +3 −0 iina/MainWindowController.swift
@@ -1621,6 +1621,9 @@ class MainWindowController: NSWindowController, NSWindowDelegate {
if fsState.isFullscreen && Preference.bool(for: .blackOutMonitor) {
blackOutOtherMonitors()
}
if #available(macOS 10.13, *), RemoteCommandController.useSystemMediaControl {
NowPlayingInfoManager.updateState(player.info.isPaused ? .paused : .playing)
}
NotificationCenter.default.post(name: .iinaMainWindowChanged, object: nil)
}

0 comments on commit 49bab4a

Please sign in to comment.
You can’t perform that action at this time.