Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2ad64d87
Commit
2ad64d87
authored
Jan 27, 2012
by
Jan Winter
Committed by
Jean-Baptiste Kempf
Feb 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: NSDistributedNofitication is sent on playerStateChange
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
c33a6b5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+14
-5
No files found.
modules/gui/macosx/intf.h
View file @
2ad64d87
...
...
@@ -180,6 +180,7 @@ struct intf_sys_t
-
(
void
)
fullscreenChanged
;
-
(
void
)
PlaylistItemChanged
;
-
(
void
)
playbackStatusUpdated
;
-
(
void
)
sendDistributedNotificationWithUpdatedPlaybackStatus
;
-
(
void
)
playbackModeUpdated
;
-
(
void
)
updateVolume
;
-
(
void
)
updatePlaybackPosition
;
...
...
modules/gui/macosx/intf.m
View file @
2ad64d87
...
...
@@ -660,8 +660,8 @@ static VLCMain *_o_sharedMainInstance = nil;
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
lookForCrashLog
)
withObject
:
nil
waitUntilDone
:
NO
];
/* we will need this, so let's load it here so the interface appears to be more responsive */
nib_open_loaded
=
[
NSBundle
loadNibNamed
:
@"Open"
owner
:
NSApp
];
/* we will need this, so let's load it here so the interface appears to be more responsive */
nib_open_loaded
=
[
NSBundle
loadNibNamed
:
@"Open"
owner
:
NSApp
];
}
-
(
void
)
initStrings
...
...
@@ -850,8 +850,8 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
applicationDidBecomeActive
:(
NSNotification
*
)
aNotification
{
if
(
!
p_intf
)
return
;
if
(
config_GetInt
(
p_intf
,
"macosx-appleremote"
)
==
YES
)
[
o_remote
startListening
:
self
];
if
(
config_GetInt
(
p_intf
,
"macosx-appleremote"
)
==
YES
)
[
o_remote
startListening
:
self
];
}
-
(
void
)
applicationDidResignActive
:(
NSNotification
*
)
aNotification
{
...
...
@@ -1484,6 +1484,15 @@ unsigned int CocoaKeyToVLC( unichar i_key )
}
[[
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
...
...
@@ -1647,7 +1656,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
-
(
id
)
appleRemoteController
{
return
o_remote
;
return
o_remote
;
}
-
(
void
)
setActiveVideoPlayback
:(
BOOL
)
b_value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment