[Gambas-user] SHELL syntax not as advertised???

Christopher Brian Jack brian at ...1334...
Fri Feb 3 01:36:10 CET 2006


On Thu, 2 Feb 2006, Benoit Minisini wrote:

> If you want to know how to embed mplayer, look at the MoviePlayer example.
> This needs a DrawingArea with Enabled = False, which internally implies some
> specific X11 stuff, needed to embed an application like mplayer.
>
> Regards,
>
> --
> Benoit Minisini

I created a separate borderless form with a label (The label was a suggest
by Mr. Kudla.  I think the label itself is disabled but the form behind it
is enabled).  Then I just use the Form's Show and Hide methods and
implemented some event reflection (to send key events back to the
non-video Form while video is playing).  The non-video form handles things
like 3-finger salute (aka "SquareSoft Reset" in Anime Mayhem it's
CTRL+ALT+TAB) and insta-quit (a Sphere'ism [http://sphere.sf.net] ESC key
exits immediately).

The form works like a charm and the inactive label means the control in
the form behind the playback form keeps focus during video scenes (and
thus can get keyboad events).  Mplayer works well using its "slave mode"
and Gambas print# and all I had to add was a "dummy" mplayer configfile
that deactivates all the keyboard bindings (bindings are great for
standalone playback but horrid for in-game animation particularly when the
audio is sourced outside the video say from a separate MP3/OGG file). Oh
and a chicanery kludge (SHELL "pwd" TO absPath) becuase mplayer wanted an
absolute path to its configfile within the project (mplayer bases relative
paths off of ~/.mplayer/)

.=================================================.
|  Christopher BRIAN Jack aka "Gau of the Veldt"  |
+================================================='
| brian _AT_ brians-anime _DOT_ com
`=================================================-
Hi Spambots, my email address is sputnik at ...1334...




More information about the User mailing list