vlc | branch: master | Felix Paul Kühne <[email protected]> | 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
