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

Declan McGrath declan at divilment.com
Sun Aug 23 18:31:36 UTC 2009


Thanks for the reply. At least I know what code I should be running in order to correctly invoke VideoPlayer. Sadly it still is not working. I've tried exactly what you said.

I'm using Qt version 4.5.0 (that came with my Kubuntu Jaunty distro in /usr/lib not my own compiled version or anything).

Oh well, maybe I'm missing a dependency or something. I'll revisit the issue in future when I've more time.

Thanks,
Declan

On Sunday 23 August 2009 18:59:59 Cyrille Berger wrote:
> 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.
> 




More information about the Kde-bindings mailing list