[vlc-devel] Unable to get OSX version of VLC to play video in MY window

Andre-John Mas ajmas at sympatico.ca
Tue Aug 11 03:17:01 CEST 2009


I think that was meant to be -I (as in India), judging from Pierre's e- 
mail.

On 10-Aug-2009, at 21:05, Greg Wishart wrote:

> Hi Pierre;
>
> Is this "-l minimal_macosx" a command-line parameter to VLC?
> What do you mean by "pass an object"?  I don't understand what  
> object you mean and where I pass it.
>
> I did remove the "macosx" module, and add "-l minimal_macosx" to the  
> command line.  The debugger shows that minimal_macosx is definitely  
> being loaded and used, but I still don't see any video in my app.
>
> -greg-
>
>
> On Aug 10, 2009, at 4:06 PM, Pierre d'Herbemont wrote:
>
>>
>> On Aug 11, 2009, at 12:37 AM, Greg Wishart wrote:
>>
>>> Hello, I need some help getting VLC to play video on OSX. I have  
>>> built version 0.9.10 and it runs fine by itself, but not the way I  
>>> need it to. I'm working on a program that uses VLC to play video  
>>> in one of MY windows instead of a window that VLC creates. Our  
>>> technique works fine on Windows, but on OSX, we just hear the  
>>> audio... no video.
>>>
>>> Our app starts by looking for an instance of VLC running. If not  
>>> found, it launch an instance. When it launches, it loads a module  
>>> we have built that replaces the regular user interface with  
>>> something that simply listens for commands from our player (start,  
>>> stop, pause, etc) and displays some debug output. When our player  
>>> app (which uses wxWidgets) sends a command to VLC to play a file,  
>>> one of the parameters is a window handle of the window that the  
>>> video is to be played in. This sets the "drawable" variable which  
>>> is supposed to display video on OUR window but we never see it.
>>>
>>> I can supply some code examples, but for now, does anyone have any  
>>> idea on what might be wrong? This technique works great on the  
>>> Windows version... I'm using version 0.9.10
>>
>> Have a look at what projects/macosx/framework is doing. This should  
>> work.
>>
>> In a few words, you have to use "-I minimal_macosx" and pass an  
>> object that implements the protocol VLCOpenGLVoutEmbedding defined  
>> in modules/gui/minimal_macosx/VLCOpenGLVoutView.h
>>
>> Pierre.
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>




More information about the vlc-devel mailing list