<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">Hi,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Sunday 23 August 2009, Declan McGrath wrote:<br>
> Hi folks, what's the best way to play a video in Qt (version 4.5.0) using<br>
> Ruby - QMovie or VideoPlayer.<br>
><br>
> I'd like to try VideoPlayer<br>
> (http://doc.trolltech.com/4.4/phonon-videoplayer.html) but when I use<br>
><br>
>   puts VideoPlayer.class<br>
><br>
> I get 'main.rb:6: uninitialized constant VideoPlayer (NameError)'<br>
><br>
> I've tried using Phonon::VideoPlayer and Qt:VideoPlayer to reference it but<br>
> still no dice.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>require 'Qt'<br>
require 'phonon'<br>
Phonon::VideoPlayer<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>works for me.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Cyrille Berger</p></body></html>