Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39385

QtQuick VideoOutput item doesn't clean up its window on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.2
    • 5.3.0
    • Multimedia
    • None
    • MacBookPro with Lion 10.8.5. iPad "4th Generation Model A1458". xcode 5.1.1
    • iOS/tvOS/watchOS
    • 5f0f81bcc1b82ea3418e4e5ce939ce22b11af0af

    Description

      I have an application which consists of a QQuickView hosting various QML "pages" (files), switching between them with setSource.

      One page has a MediaPlayer/VideoOutput pair on it. This works well (tested on Linux, MacOS and iOS). However, on iOS, when the QQuickView changes source to another QML file, the VideoOutput window doesn't disappear and just sits there showing the last frame it displayed and hiding the content of the new QML file (which seems to function fine, apart from the fact it has this video image relic obscuring it).

      There doesn't seem to be any way of getting rid of the it (switching to another app and back does hide and restore the video window). In Linux and MacOS versions of the app, the VideoWindow does disappear as expected when the view changes to a new source.

      There is a workround: if I add a

        Component.onDestruction: {visible=false;}
      

      line to the VideoOutput item, then it does disappear as expected when changing QML source on iOS too. Although there is something slightly odd about the disappearance: the system seems to be doing some sort of "minimimise" animation and the video window (only) flies up into the top left (I'm certainly not doing that in my QML) and/or the disappearance of the video window can be a bit "flickery".

      I could probably supply a minimal sample to reproduce it if it helps.

      Attachments

        For Gerrit Dashboard: QTBUG-39385
        # Subject Branch Project Status CR V

        Activity

          People

            ylopes Yoann Lopes
            timday Tim Day
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes