[vlc-commits] macosx/player controller: expose navigation

Felix Paul Kühne git at videolan.org
Wed Mar 27 17:52:49 CET 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Wed Mar 27 16:07:50 2019 +0100| [92699da4389550ff66bca6ff5afc84e65ddc2cac] | committer: Felix Paul Kühne

macosx/player controller: expose navigation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92699da4389550ff66bca6ff5afc84e65ddc2cac
---

 modules/gui/macosx/playlist/VLCPlayerController.h | 5 +++++
 modules/gui/macosx/playlist/VLCPlayerController.m | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/modules/gui/macosx/playlist/VLCPlayerController.h b/modules/gui/macosx/playlist/VLCPlayerController.h
index 5619c611cf..2148847f48 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.h
+++ b/modules/gui/macosx/playlist/VLCPlayerController.h
@@ -542,6 +542,11 @@ extern NSString *VLCPlayerMuteChanged;
 @property (readwrite, nonatomic, nullable) vlc_renderer_item_t *rendererItem;
 
 /**
+ * navigate in interactive content such as DVD or BR menus
+ */
+- (void)navigateInInteractiveContent:(enum vlc_player_nav)navigationAction;
+
+/**
  * the latest available playback statistics
  * @return an instance of VLCInputStats holding the data
  * @note listen to VLCPlayerStatisticsUpdated to be notified about changes to this property
diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m
index 627f5ad2d9..1c17259dbb 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.m
+++ b/modules/gui/macosx/playlist/VLCPlayerController.m
@@ -1116,6 +1116,13 @@ static const struct vlc_player_aout_cbs player_aout_callbacks = {
     vlc_player_Unlock(_p_player);
 }
 
+- (void)navigateInInteractiveContent:(enum vlc_player_nav)navigationAction
+{
+    vlc_player_Lock(_p_player);
+    vlc_player_Navigate(_p_player, navigationAction);
+    vlc_player_Unlock(_p_player);
+}
+
 - (void)recordingChanged:(BOOL)recording
 {
     _enableRecording = recording;



More information about the vlc-commits mailing list