Hello Andy, I have done this on a old project for a similar purpose. Basically you have to configure Webwiew to be rendered on a translucent Window.
Maybe this link can help: http://www.mail-archive.com/[email protected]/msg00940.html After that, you can use a Background image (at your html) with a transparent rectangle. With that you have a hole on your browser window. best regards, *Bruno Ledesma* 2012/9/27 andy wang <[email protected]> > Hi All, > I want to draw a hole in the browser to show the video which below the the > browser. > To play/show the video of html5, I need to decode the audio/video by the > hardware because of the poor cpu and memory, and I use the gstreamer > architecture. In the webkit core, there are already some module to support > the video tag of html5, HTMLMediaElement, HTMLVideoElement, MediaPlayer, > MediaPlayerPrivate MediaPlayerPrivateGstreamer and so on. And this solution > is using the ffmpeg or other software decode and then transfer the decoded > data to webkit, at last render the video data to OSD layer. But my embedded > device have poor cpu ability so I need use the hardware decode and then > render the video data to the video layer which below the osd layer. And now > I can decode the video stream and render it to the video layer(Not link the > m_webkitVideoSink to m_PlayBin in > MediaPlayerPrivateGStreamer::createGSTPlayBin, so the data will go through > to my video sink), but I can not see the video because it's converd by the > browser. So my question is how can i cut a hole in the browser to show the > video, and this hole should have the same size and position with the video > window. > > I try to fix this issue by draw the hole in the paint function of > MediaPlayerPrivateGStreamer::paint, but the hole will be coverd by the > browser background soon. So I don't know how to keep my hole alwasy there > so I can see the video. > > I Use the qt4.8.0 version. And the paint engine is directfb. > > 2012/9/27 <[email protected]> > >> Send webkit-qt mailing list submissions to >> [email protected] >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.webkit.org/mailman/listinfo/webkit-qt >> or, via email, send a message with subject or body 'help' to >> [email protected] >> >> You can reach the person managing the list at >> [email protected] >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of webkit-qt digest..." >> >> >> Today's Topics: >> >> 1. Minutes from the Status Meeting in #qtwebkit on Freenode IRC >> network (Qt WebKit StatusBot) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Wed, 26 Sep 2012 11:29:30 -0700 (PDT) >> From: Qt WebKit StatusBot <[email protected]> >> To: [email protected] >> Subject: [webkit-qt] Minutes from the Status Meeting in #qtwebkit on >> Freenode IRC network >> Message-ID: <[email protected]> >> >> Updates: >> * rtakacs status: still hacking our and Khronos' webgl test environment >> * bbandix status: extended QML WebView examples and pushed them to >> gerrit for review >> * Ossy status: still hacking LLInt - http://wkb.ug/95749 , found what >> broke all EWS bots for half a day - http://wkb.ug/97647 , still hacking >> with an EvenSenderProxy bug - http://wkb.ug/92231 , minor gardening: >> skip/unskip tests and a buildfix >> * tronical status: fixing a bunch of qtbase bugs, completed >> qdeclarativewebview move to qtquick1 (waiting for CI system) >> * reni status: merge sandboxme and the old sandbox solution into one >> patch >> * mibrunin status bug 82506 >> * azbest_hu status: gardening; buildfix for WTR on Windows; >> investigating and reporting other bug related to WTR on MSVC build; trying >> out an LLInt patch on Windows for Ossy. >> * dicska status: fix WTR to use 60 sec longtimeout instead of 30 sec >> * kadam status: Reviewing Qt skipped list. Closing the old bugs. >> * setanta status: gardening Qt5 regressions >> * kbalazs status: sickened today :( >> * carewolf status: Trying to share more X11 global selection code >> between platforms >> * jturcotte status: Fixed a crash on any key press in xcb-xlib. Looking >> at the qml auto test crashes and doing between-build-uploads of the rest of >> the page navigation patches. >> >> Missing updates from: Zoltan, abalazs, abinader, cmarcelo, darktears, >> elproxy, hnandor, hugopl, igoroliveira, jeez_, kenneth_, kkristof, lmoura, >> loki04, luck, noamr, rafaelbrandao, stampho, szledan, tczene, torarne, >> zalan, zalbisser, zherczeg >> >> >> ------------------------------ >> >> _______________________________________________ >> webkit-qt mailing list >> [email protected] >> http://lists.webkit.org/mailman/listinfo/webkit-qt >> >> >> End of webkit-qt Digest, Vol 36, Issue 27 >> ***************************************** >> > > > _______________________________________________ > webkit-qt mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo/webkit-qt > >
_______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo/webkit-qt
