t1m
January 3rd, 2008, 11:39 PM
I recently did this (http://techbase.kde.org/Development/Tutorials/Qt4_Ruby_Tutorial) Qt/Ruby tutorial on the Kde TechBase.
I've been trying to make a multimedia player using ruby, and I would like to be using Phonon. It's been a bit confusing, and I haven't been able to get it to play any sound or anything (!).
When I try running this: (tranlated from this wikipedia page (http://en.wikipedia.org/wiki/Phonon_(KDE)))
require 'korundum4'
require 'Qt4'
media = MediaObject.new(self)
Qt::Object.connect(media, SIGNAL('finished()'), SLOT('slotFinished()'))
media.setCurrentSource("/home/kde-devel/ruby/oops.mp3")
media.play()
I get:
ruby/test5.rb:4: uninitialized constant MediaObject (NameError)
What's wrong?
Any help would be much appreciated.
Thanks. :KS
I've been trying to make a multimedia player using ruby, and I would like to be using Phonon. It's been a bit confusing, and I haven't been able to get it to play any sound or anything (!).
When I try running this: (tranlated from this wikipedia page (http://en.wikipedia.org/wiki/Phonon_(KDE)))
require 'korundum4'
require 'Qt4'
media = MediaObject.new(self)
Qt::Object.connect(media, SIGNAL('finished()'), SLOT('slotFinished()'))
media.setCurrentSource("/home/kde-devel/ruby/oops.mp3")
media.play()
I get:
ruby/test5.rb:4: uninitialized constant MediaObject (NameError)
What's wrong?
Any help would be much appreciated.
Thanks. :KS