darkladen has asked for the wisdom of the Perl Monks concerning the following question:
I noticed that both (MPlayerEmbed and MozEmbed) are not shown because they are reduced to the size of 1x1. I have not succeeded find a way to put inside a layout widget, a widget MozEmbed or MPlayerEmbed. I hope I understand and I can help. Thanks.#!/usr/bin/perl use warnings; use strict; use Glib qw/TRUE FALSE/; use Gtk2 '-init'; use Gtk2::Ex::MPlayerEmbed; # Create Main Window my $window = Gtk2::Window->new('toplevel'); $window->set_border_width(0); $window->set_decorated(0); $window->set_position('center-always'); $window->set_title('Player'); $window->signal_connect( destroy => sub { Gtk2->main_quit; } ); $window->set_default_size(1024, 768); my $vbox = Gtk2::VBox->new(0, 0); $vbox->set_border_width(0); # Create a Fixed Container my $layout = Gtk2::Layout->new(); $layout->set_size (1024, 768); $vbox->add($layout); $window->add($vbox); $vbox->show_all; # Create MPLAYER Widget my $mpe = Gtk2::Ex::MPlayerEmbed->new(); $mpe->set('args', $mpe->get('args').' -vo xv'); $layout->put($mpe, 0, 0); $mpe->play('path_to_video.mp4'); $mpe->show_all; $window->show_all; main Gtk2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use widget MPlayerEmbed in Layer container... I can't see the video
by zentara (Cardinal) on May 18, 2011 at 15:10 UTC | |
by darkladen (Initiate) on May 18, 2011 at 20:12 UTC | |
by zentara (Cardinal) on May 19, 2011 at 14:08 UTC | |
by darkladen (Initiate) on May 19, 2011 at 14:24 UTC | |
by zentara (Cardinal) on May 20, 2011 at 13:39 UTC | |
by darkladen (Initiate) on May 20, 2011 at 16:14 UTC | |
by zentara (Cardinal) on May 21, 2011 at 13:55 UTC |