My target OS is Windows.
On CPAN, windows is called Win32 :D and what you'd do is grab Win32::API and then head on to MSDN and do some reading, so that you can write something similar to Win32::GUI::AxWindow or Wx::ActiveX::WMPlayer or ....

http://perltk.org => http://www.perltk.org/ptknews/recall_me.cgi?Search=video => Re: Embedding media players in Tk ?

Take a look at Win32::MultiMedia (it's on ppm for both ActivePerl 5.6 and 5.8)

It uses the MCI interface to play any kind of audio/video using MediaPlayer. You can embed the video in any Tk frame using the id of the frame:

use strict; use Tk; use Win32::MultiMedia::Mci; my $file = shift || 'test.mpg'; my $video_frame = $mw->Frame( -width => 352, -height => 240, -background => 'black' )->pack(-expand => 1); my $mci = Win32::MultiMedia::Mci->open($file, shareable => 1, style => 'child', parent => hex($frame->id) ); $mci->play('');
Hope this helps, Thomas
update: MCI is as easy as Win32::MCI::Basic (just look at Win32::MCI::CD).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: Playing video with perl / perltk by PodMaster
in thread Playing video with perl / perltk by TROGDOR

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.