Octavian Rasnita wrote:
Hi,

Can Wx::MediaCtrl be used with WxPerl?

I can't use Wx::MediaCtrl->new because it says that it is not loaded, and I can't 
"use Wx::MediaCtrl" because it can't be found.
And I couldn't find it using ppm.

Thanks.

Octavian

What platform?
- On Windows using the ppm's from wxperl.co.uk it should work "out of the box" (using MediaPlayer). - On Mac OSX it works (I think it uses Quicktime and I compiled wxWidgets and wxPerl myself) - On Ubuntu it also works, can't remember what player has to be installed (GStreamer or something). - Other linux flavours I've tried failed because the above player was not installed but I haven't looked into that in detail.

According to the wxperl_demo.pl you have to do something like:
use Wx::Media;
my $media = Wx::MediaCtrl->new( $self, -1, '', [-1,-1], [-1,-1], 0 );

Using the demo is also the quickest way to find out if Wx::MediaCtrl works on your box.

Cheers,
Huub

Reply via email to