[webkit-qt] How to draw a hole in browser to show the video content

andy wang wandy817 at gmail.com
Thu Sep 27 07:44:37 PDT 2012


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 <webkit-qt-request at lists.webkit.org>

> Send webkit-qt mailing list submissions to
>         webkit-qt at lists.webkit.org
>
> 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
>         webkit-qt-request at lists.webkit.org
>
> You can reach the person managing the list at
>         webkit-qt-owner at lists.webkit.org
>
> 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 <qtwebkit-statusbot at openbossa.org>
> To: webkit-qt at lists.webkit.org
> Subject: [webkit-qt] Minutes from the Status Meeting in #qtwebkit on
>         Freenode IRC network
> Message-ID: <5063498a.0560b40a.7b73.223f at mx.google.com>
>
> 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
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-qt
>
>
> End of webkit-qt Digest, Vol 36, Issue 27
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20120927/f62d1600/attachment.html>


More information about the webkit-qt mailing list