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

QML mediaplayer has black screen when using @android:style/Theme.NoTitleBar.Fullscreen in Android Manifest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.2.0 Beta1
    • QPA
    • None
    • Tested on Android 4.04 on 3 different devices. Qt 5.1.1 had the same problem already.
    • Android
    • 2020wk17

    Description

      QML Mediaplayer works in Android, and the video is always fullscreen. Works fine, but there is the Android statusbar covering the bottom of the video.

      The only way to get rid of it seems to be to add "@android:style/Theme.NoTitleBar.Fullscreen" to the Android manifest. If you do so, and change nothing but add this theme declaration to the manifest, the video is apparently playing, audio is fine, but the screen remains black.

      You can reproduce using the Qt 5.2 example multimedia-video-qmlvideo. This example works on Android, with the exception that the video is not scaled to the video output size, but covers, in the background, always the full screen, and the videoOutput size is just clipping the visible area (which is not the problem here). If you modify this example by simply adding "@android:style/Theme.NoTitleBar.Fullscreen" to the Android Manifest, also here the video runs in the background, but no image is shown, it's just black.

      As viewer.showFullScreen() does not remove the Android statusbar, adding the theme to the manifest is currently the only option to get real fullscreen on Android. At least as long as viewer.showFullScreen does not work (see QTBUG-33135 ). So there seems to be currently no way to play video in real fullscreen on Android.

      This is a problem for all videoplayer applications or set top box applications using Android.

      This might be a simple fix, I guess the video output is just not using the correct surface. Otherwise fixing QTBUG-33135 by implementing a real viewer.showFullScreen() would provide a solution too.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            kalileo Kali Leo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes