[Kde-bindings] Video playing using qt-ruby bindings

Cyrille Berger cberger at cberger.net
Sun Aug 23 17:59:59 UTC 2009


Hi,

On Sunday 23 August 2009, Declan McGrath wrote:
> Hi folks, what's the best way to play a video in Qt (version 4.5.0) using
> Ruby - QMovie or VideoPlayer.
>
> I'd like to try VideoPlayer
> (http://doc.trolltech.com/4.4/phonon-videoplayer.html) but when I use
>
>   puts VideoPlayer.class
>
> I get 'main.rb:6: uninitialized constant VideoPlayer (NameError)'
>
> I've tried using Phonon::VideoPlayer and Qt:VideoPlayer to reference it but
> still no dice.

require 'Qt'
require 'phonon'
Phonon::VideoPlayer

works for me.

-- 
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090823/cd33ff5b/attachment.html>


More information about the Kde-bindings mailing list