Commit 98e662b3 authored by Jan Winter's avatar Jan Winter Committed by Jean-Baptiste Kempf

OSX: NSDistributedNofitication is sent on playerStateChange

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 2ad64d87724ffe0256d6ac8056e2ef4af5b1192d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9c574fe1
...@@ -180,6 +180,7 @@ struct intf_sys_t ...@@ -180,6 +180,7 @@ struct intf_sys_t
- (void)fullscreenChanged; - (void)fullscreenChanged;
- (void)PlaylistItemChanged; - (void)PlaylistItemChanged;
- (void)playbackStatusUpdated; - (void)playbackStatusUpdated;
- (void)sendDistributedNotificationWithUpdatedPlaybackStatus;
- (void)playbackModeUpdated; - (void)playbackModeUpdated;
- (void)updateVolume; - (void)updateVolume;
- (void)updatePlaybackPosition; - (void)updatePlaybackPosition;
......
...@@ -1484,6 +1484,15 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1484,6 +1484,15 @@ unsigned int CocoaKeyToVLC( unichar i_key )
} }
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO]; [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO];
[self performSelectorOnMainThread:@selector(sendDistributedNotificationWithUpdatedPlaybackStatus) withObject: nil waitUntilDone: NO];
}
- (void)sendDistributedNotificationWithUpdatedPlaybackStatus
{
[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"VLCPlayerStateDidChange"
object:nil
userInfo:nil
deliverImmediately:YES];
} }
- (void)playbackModeUpdated - (void)playbackModeUpdated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment