athanasia has asked for the wisdom of the Perl Monks concerning the following question:
Have you ever used this CPAN module? Do you have any suggestions on what could be wrong?use Tk; use warnings; use Win32::MultiMedia::Mci; my $file = "pathtofile/file.avi"; my $mw = tkinit; my $counter = 10; my $frame = $mw->Frame(-height => 300, -width =>400)->pack; my $hexid = hex($frame->id); $mci = Win32::MultiMedia::Mci->open($file, 'parent'=>$hexid, 'style'=> +'child'); $mci->play('repeat'); $mw->update; while ($counter > 0) { sleep 1; $counter -=1; } $mci->stop(); $mci->close; Mainloop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unstable behaviour of Win32::MultiMedia module
by marto (Cardinal) on Mar 16, 2009 at 12:18 UTC | |
by athanasia (Pilgrim) on Mar 16, 2009 at 12:44 UTC | |
by marto (Cardinal) on Mar 16, 2009 at 13:05 UTC |