Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-727

Allow multiple QGraphicsVideoItems to be displayed in one QGraphicsView on Symbian

XMLWordPrintable

    • 35c64028 7b8c13de d9fca820 d3babbee

      Using the 'overlay' QGraphicsVideoItem implementation (src/multimedia/qgraphicsvideoitem_overlay.cpp), the native window handle of the QGraphicsView widget is passed to the backend via the QVideoWindowControl interface. This means that, if multiple QGraphicsVideoItems are displayed in a single QGraphicsView, they will all be given the same native window handle.

      On Symbian, it is only possible to render one video to a given native window handle. Attempting to add a second QGraphicsVideoItem will therefore cause the first to stop displaying video and just appear black.

      In order to allow multiple QGraphicsVideoItems to be displayed in the same view, each one must be given its own native window handle. This could be implemented as follows:

      • QGraphicsVideoItem creates a parentless QWidget, and sets its z-order so that is appears behind the QGraphicsView window
      • The area of the QGraphicsView window covered by the QGraphicsVideoItem is painted with transparency

        1. results-window.txt
          4 kB
        2. qtmultimediakit-testapps.zip
          21 kB
        3. patches-727.zip
          15 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gastockw Gareth Stockwell
            gastockw Gareth Stockwell
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes