[plt-scheme] libVLC and PLT Scheme on OSX

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Dec 11 11:28:13 EST 2009

Call the canvas's `with-gl-context' method, and give it a thunk that
uses the Mac OS X function aglGetCurrentContext() to get the current
context. The result is an `AGLContext' and probably what you need.

At Mon, 7 Dec 2009 14:54:11 -0500, Christopher Bowron wrote:
> I'm trying to do some video playback inside a PLT Scheme window on a
> Mac with OSX.  I'm using libVLC to do the actual video playback and
> I've been able to get it work in Windows using combination of
> libvlc_media_player_set_hwnd on the VLC side, and get-handle on PLT
> side to get an hwnd of a window.
> On the mac, the VLC documention says that it needs an "agl handler" in
> the form of a uint32_t.  According to the documentation, get-handle
> returns a WindowRef or ControlRef on osx, which doesn't work.  After
> some reading, it looks like an agl handler might be related to OpenGL,
> so I thought the agl handler might be something I could retrieve using
> a gl-context%, but I don't know how i could coerce that into a 32 bit
> integer.
> Anybody have any ideas as to what I could be looking for?
> Thanks.
> P.S. If anyone is interested in what I am doing, I have a blog post
> that shows code for doing the video playback under Windows:
> http://cwbowron.wordpress.com/2009/11/20/vlc-and-plt-scheme-n1/
> -- 
> Christopher W. Bowron <chris at bowron.us>
> [ Nothing is exciting if you know what the outcome will be ]
>     - Joseph Campbell
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.