Greetings monks.

I have an installation running wxPerl with Wx::MediaCtrl front-ending GStreamer. The functionality of Wx::MediaCtrl, does not adequately control GStreamer, so I had hoped to use the GStreamer perl api, however, I have belatedly realised that the GStreamer perl api seems to be part of Gtk2-Perl. So I guess GStreamer (perl) and Glib have some fundamental level of interoperation through Gtk2.

For instance if I just use the sample code (Getting the Perl GStreamer api working.) for Gstreamer, a window pops up and it runs easily. This is presumably a Gtk2 window. There is a Glib::MainLoop, which I understand is the Gtk2 event processor.

I would like to use a Wx window and use Wx events as well, since I have a heavy investment in them. How would I do do this? Do I need to learn Gtk2? Is there some sample code around that would help me to understand it.

I guess it's a bit of an overhead to have two event processors (Gtk2 & Wx) but it doesn't sound like the end of the world. The bigger question for me is how do I play the GStreamer perl api through a Wx::Frame or whatever.

Sorry if this post seems a bit intractible.

Your advice is very welcome.

Regards

Steve.


In reply to Glib & Wx interoperation by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.