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

QML Video not working on Android and makes UI invisible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.14.0
    • Multimedia
    • None
    • Android Platforms tested: Android TV w/ Android 9 and Q. Android Mobile with Android 9.

       Desktop platform is Kubuntu 18.04.3.
    • Android

    Description

      When the attached application runs on Android (LG G8, Android 9, NVIDIA Shield, or Android Emulator), the video does not display although audio does play back. While playing, the entire application shows up as the background color. If one knows where the "play/pause" button is, one can pause the video and have the UI reappear, only to disappear again when play is clicked.

      Using the Android emulator with either an Android 9 or Q "Android TV" emulator causes the GPU fan to run full speed and the machine to lock-up until the emultor is interrupted or killed.

      With versions of Qt older that 5.14.0, e.g. 5.13.2, the application displays video correctly and the UI remains functional and visible, as expected.

      The code is at https://github.com/NielsMayer/qmlvideo

      This code also demonstrates a separate minor problem, in that on Linux Desktop platform, the 'metaData' property on the QML Video item is filled, displaying information on the video in the center of the footer. On Android (both for 5.14 and older) this 'MediaPlayer.metaData' property for the QML Video item is not filled; thus, "Loading Video" remains displayed even after the video is playing. The associated code is https://github.com/NielsMayer/qmlvideo/blob/af0c05229c3f4cb9b8b58dccaac5281dcda5cb30/main.qml#L83 .... Should I file a separate bug, or did I miss somewhere that 'metaData' is platform specific?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              nielsmayer Niels Mayer
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes