Video in window



Greetings.

I need play video files in a GTK2 window.
I have installed "Gtk2::Ex::MPlayerEmbed"  module.
and I  write this example:
            

    use Gtk2 -init;
        use Gtk2::Ex::MPlayerEmbed;
        my $window = Gtk2::Window->new;
        my $embed = Gtk2::MPlayerEmbed->new; ## :-(
        $window->add($embed);
        $window->show_all;
        $embed->play("/home/bashman/video.mpg");
        Gtk2->main;

But it does not work. see:

Can't locate object method "new" via package "Gtk2::MPlayerEmbed"
(perhaps you forgot to load "Gtk2::MPlayerEmbed"?)

some advice?.
Tanks.

-- 
José Luis Regalado
Debian GNU/Linux User 280381.
San Cristóbal Edo. Táchira - Venezuela
0276-766.72.20 0416-373.75.15 0414-710.48.57
FINGERPRINT=27AB 7E3A F77F 58C8 A0DB  57AD 9912 CF32 9C2E 001E
"Donde  hay  ignorancia  hay  fanatismo  donde
hay fanatismo  no hay tolerancia, donde no hay
tolerancia no hay _paz_"













Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]