Qt-interest Archive, May 2008
Embedding Phonon::VideoWidget in demo browser
Pages: Prev | 1 | 2 | Next
Message 16 in thread
--- On Tue, 27/5/08, Tor Arne Vestbø <tor.arne.vestbo@xxxxxxxxxxxxx> wrote:
> From: Tor Arne Vestbø <tor.arne.vestbo@xxxxxxxxxxxxx>
> Subject: Re: Embedding Phonon::VideoWidget in demo browser
> To: qt-interest@xxxxxxxxxxxxx
> Date: Tuesday, 27 May, 2008, 6:17 PM
> Nitin Mahajan wrote:
> > If I use git to clone the repository, can I always do
> something similar to "svn update"?
>
> Yes, you would be doing something like git pull --rebase
> (if you have
> the latest git version).
Is this fine? git clone git://code.staikos.net/webkit WebKitMedia.
regards
-Nitin
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
[ signature omitted ]
Message 17 in thread
Nitin Mahajan wrote:
> Is this fine? git clone git://code.staikos.net/webkit WebKitMedia.
Yepp, I would guess 'git clone git://code.staikos.net/webkit' would be
enough.
You then need to create a local branch to track
origin/torarne/mediaelement, by doing 'git branch torarne/mediaelement
origin/torarne/mediaelement', and check it out using 'git checkout
torarne/mediaelement'. Do 'git fetch' and 'git rebase
origin/torarne/mediaelement' once in a while to get updates.
Tor Arne
--
[ signature omitted ]
Message 18 in thread
HI Tor!
--- Tor Arne Vestbø <tor.arne.vestbo@xxxxxxxxxxxxx>
wrote:
> Nitin Mahajan wrote:
> > Is this fine? git clone
> git://code.staikos.net/webkit WebKitMedia.
>
> Yepp, I would guess 'git clone
> git://code.staikos.net/webkit' would be
> enough.
>
> You then need to create a local branch to track
> origin/torarne/mediaelement, by doing 'git branch
> torarne/mediaelement
> origin/torarne/mediaelement', and check it out using
> 'git checkout
> torarne/mediaelement'. Do 'git fetch' and 'git
> rebase
> origin/torarne/mediaelement' once in a while to get
> updates.
>
I got the sources in the bove mentioned way today. I
tried compiling it. But getting following errors,
which I thought are pointing inside source.
Any idea what might be going wring or whether you have
faced it?
MLFormElement.o
../../../WebCore/html/HTMLFormElement.cpp
In file included from
../../../WebCore/html/HTMLFormElement.cpp:34:
../../../WebCore/platform/FileSystem.h:138: error:
?PlatformModule? was not declared in this scope
make[1]: *** [tmp/HTMLFormElement.o] Error 1
make[1]: Leaving directory
`/home/nitin/works2/works/webkit/WebKitBuild/Release/WebCore'
make: *** [sub-WebCore-make_default-ordered] Error 2
regards
-Nitin
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
[ signature omitted ]
Message 19 in thread
--- On Mon, 26/5/08, André Somers <andre@xxxxxxxxxxxxxxxx> wrote:
> From: André Somers <andre@xxxxxxxxxxxxxxxx>
> Subject: Re: Embedding Phonon::VideoWidget in demo browser
> To: qt-interest@xxxxxxxxxxxxx
> Date: Monday, 26 May, 2008, 4:43 PM
> Hi again,
>
> So, what exactly didn't work with the hints you were
> given before on this
> very topic? What have you tried yourself?
I created a class MediaPlayer derived pulically from QWidget, very similar to the MediaPlayer example. I want to add this widget to the webpage.
The Trolltech blog about Demo Browser said that since QWebPage::createPlugin is implemented in the Demo Browser, I can embedd any Qt Widget into browser. So I thought following code in HTML should just at-least embedd the MediaPlayer class to the webpage.
object type="application/x-qt-plugin" classid="MediaPlayer" name="myplayer" width=320 height=240></object>
But it gives me this error on console
"QFormBuilder was unable to create a widget of the class 'MediaPlayer'."
So my question is,
1. If I need to embedd any custom created class into a QWebpage, what all steps should I follow?
2.Specifically, Do I need to define the class in a different way so that it becomes available to create a widget dynamically.
3. Do I have to make a entry of MediaPlayer some where so that it is available to QFormBuilder, is that in form of .ui file. If yes, how?
regards
-Nitin
>
> André
>
>
> "Nitin Mahajan" <nitinm76@xxxxxxxxx> wrote
> in message
> news:467928.85557.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Hello!
> >
> > I want to embed a Phonon::VideoWidget in demo browser.
> I have made this
> > widget as a part of browser code. It's not a
> seperate application or
> > library.
> > I read the demo browser blog and the example of plug
> in in that. I also
> > tried to do something similar , but could not get the
> whole picture from
> > Trolltech docs and the blog.
> >
> > Can anyone pls explain me the steps clearly, towards
> achieving this
> > objective.
> >
> > Also how would be HTML code so that I can show a
> Phonon::VideoWidget in
> > the demo browser at a location which I can specify.
> >
> > Later I would like this Phonon::VideoWidget to be
> embedded using a Java
> > Script.
> >
> > regards
> >
> > -Nitin
> >
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> > --
> > To unsubscribe - send a mail to
> qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information:
> http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to
> qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information:
> http://lists.trolltech.com/qt-interest/
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
[ signature omitted ]
Message 20 in thread
Hi Nitin,
"Nitin Mahajan" <nitinm76@xxxxxxxxx> wrote in message
news:305131.91611.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> So, what exactly didn't work with the hints you were
>> given before on this
>> very topic? What have you tried yourself?
>
> I created a class MediaPlayer derived pulically from QWidget, very similar
> to the MediaPlayer example. I want to add this widget to the webpage.
>
> The Trolltech blog about Demo Browser said that since
> QWebPage::createPlugin is implemented in the Demo Browser, I can embedd
> any Qt Widget into browser. So I thought following code in HTML should
> just at-least embedd the MediaPlayer class to the webpage.
>
> object type="application/x-qt-plugin" classid="MediaPlayer"
> name="myplayer" width=320 height=240></object>
>
> But it gives me this error on console
>
> "QFormBuilder was unable to create a widget of the class 'MediaPlayer'."
>
> So my question is,
> 1. If I need to embedd any custom created class into a QWebpage, what all
> steps should I follow?
>
> 2.Specifically, Do I need to define the class in a different way so that
> it becomes available to create a widget dynamically.
>
> 3. Do I have to make a entry of MediaPlayer some where so that it is
> available to QFormBuilder, is that in form of .ui file. If yes, how?
Now we are getting somewhere ;-). Thank you for clarifying and specifying
your question.
I'm sure it is possible to make QFormBuilder find your custom widgets, but I
have never tried that. My guess is that you'd have to take the route you
take when making your widgets available to QDesigner in the first place. The
QFormBuilder documentation hints at this: "QFormBuilder extends the
QAbstractFormBuilder base class with a number of functions that are used to
support custom widget plugins:". Take a look at the QDesigner documentation
for more information on this, specifically the "Creating Custom Widgets for
Qt Designer" page.
However, it may be simpler to go a different route, and simply subclass
QWebPage. You then reimplement createPlugin to create the widget you want if
your "MediaPlayer" class comes along, and call the default implementation
for any other widget. That should give you complete controll over your
widget's creation.
André
--
[ signature omitted ]