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
67da2de6
Commit
67da2de6
authored
Aug 08, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: updated applescript binding to current API
parent
e616d0df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
38 deletions
+32
-38
modules/gui/macosx/applescript.m
modules/gui/macosx/applescript.m
+32
-38
No files found.
modules/gui/macosx/applescript.m
View file @
67da2de6
...
...
@@ -26,8 +26,7 @@
*****************************************************************************/
#include "intf.h"
#include "applescript.h"
#include "controls.h"
#include "open.h"
#include "CoreInteraction.h"
/*****************************************************************************
* VLGetURLScriptCommand implementation
...
...
@@ -94,42 +93,37 @@
return
nil
;
}
VLCControls
*
o_controls
=
[[
VLCMain
sharedInstance
]
controls
];
if
(
o_controls
)
if
(
[
o_command
isEqualToString
:
@"play"
]
)
{
if
(
[
o_command
isEqualToString
:
@"play"
]
)
{
[
o_controls
play
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"stop"
]
)
{
[
o_controls
stop
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"previous"
]
)
{
[
o_controls
prev
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"next"
]
)
{
[
o_controls
next
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"fullscreen"
]
)
{
[
o_controls
toogleFullscreen
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"mute"
]
)
{
[
o_controls
mute
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"volumeUp"
]
)
{
[
o_controls
volumeUp
:
self
];
}
else
if
(
[
o_command
isEqualToString
:
@"volumeDown"
]
)
{
[
o_controls
volumeDown
:
self
];
}
[[
VLCCoreInteraction
sharedInstance
]
play
];
}
else
if
(
[
o_command
isEqualToString
:
@"stop"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
stop
];
}
else
if
(
[
o_command
isEqualToString
:
@"previous"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
previous
];
}
else
if
(
[
o_command
isEqualToString
:
@"next"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
next
];
}
else
if
(
[
o_command
isEqualToString
:
@"fullscreen"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
toggleFullscreen
];
}
else
if
(
[
o_command
isEqualToString
:
@"mute"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
mute
];
}
else
if
(
[
o_command
isEqualToString
:
@"volumeUp"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
volumeUp
];
}
else
if
(
[
o_command
isEqualToString
:
@"volumeDown"
]
)
{
[[
VLCCoreInteraction
sharedInstance
]
volumeDown
];
}
return
nil
;
}
...
...
@@ -147,7 +141,7 @@
-
(
void
)
setScriptFullscreenMode
:
(
BOOL
)
mode
{
VLCControls
*
o_controls
=
[[
VLCMain
sharedInstance
]
controls
];
if
(
mode
==
[
o_controls
isFullscreen
])
return
;
[
o_controls
toogleFullscreen
:
self
];
[
[
VLCCoreInteraction
sharedInstance
]
toggleFullscreen
];
}
@end
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