[Gambas-user] Embedding VLC movie window immediately... without a 2 second pause
Lee McPherson
leemcpherson at ...626...
Wed Mar 26 01:08:44 CET 2008
I can understand that, but there's a wierd quirk in VLC that when I use
EXEC to run it, even with the command line only parameters, the GUI
launches itself. I've tried to compile it without the GUI, but have
failed so far :( Using shell works perfectly... just that it creates
that delay in embedding the window. Thanks
-Lee
Jaap Cramer wrote:
> Hi
> I think the delay comes from using the shell. When I use a simple shell line to readout that prg, it usualy take a little time. I dont know why
> Jaap
>
> ----------------------------------------
>
>> Date: Tue, 25 Mar 2008 19:49:19 -0400
>> From: leemcpherson at ...626...
>> To: gambas-user at lists.sourceforge.net
>> Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause
>>
>> I have the basic code to embed a VLC movie window into a gambas app,
>> however, there is an annoying 2 second pause before the window finally
>> becomes embedded. The movie will actually start playing for a couple of
>> seconds in a separate window before it gets embedded. I'm not sure if
>> it's a limitation of VLC or something else but I'm trying to figure out
>> how to stop this. Here is the basic code I'm using (borrowed from
>> another user) :
>>
>> PUBLIC SUB Presence_Embed(windowTitle AS String)
>> DIM key AS Integer
>> key = WindowClasses.getWindowID(windowTitle)
>> IF key> 0 THEN
>> Embedder1.Embed(key)
>> Embedder1.SetFocus
>> ENDIF
>> Embedder1.Visible = TRUE
>> END
>>
>> PUBLIC SUB Form_Open()
>>
>> DIM iWindowInfoArray AS Integer
>> $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS
>> "$mplayerproc" 'starts vlc command line in a process
>> PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie
>> to the playlist and starts it
>> Presence_Embed("VLC (X11 output)")
>>
>> END
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> _________________________________________________________________
> Probeer Live Search: de zoekmachine van de makers van MSN!
> http://www.live.com/?searchOnly=true
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list