[vlc-devel] Play DVD on MacOSX, can't control DVD-menu

monkeycz monkeycz at gmail.com
Thu May 19 06:41:43 CEST 2011


I use VLCKit.framework on MacOSX, when I open a DVD disc like this:"[player
setMedia:[VLCMedia mediaWithPath:@"/Volumes/xxxxx/"]];", DVD-menu has been
displayed, but can't control it by mouse, looks like miss mouse event. I
tried libVLC, same result. VLCKit.framework use --vout=macosx. May be I need
a function like "libvlc_video_set_cursor" in mouseMoved: event.

--- A/video.c
+++ B/video.c
@@ -205,6 +205,18 @@
     return 0;
 }

+int libvlc_video_set_cursor( libvlc_media_player_t *mp, unsigned num,
+                             int x, int y )
+{
+    vout_thread_t *p_vout = GetVout (mp, num);
+    if (p_vout == NULL)
+        return -1;
+
+    var_SetCoords (p_vout, "mouse-moved", x, y);
+    vlc_object_release (p_vout);
+    return 0;
+}
+
 unsigned libvlc_media_player_has_vout( libvlc_media_player_t *p_mi )
 {
     size_t n;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110519/ac2b2547/attachment.html>


More information about the vlc-devel mailing list