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

QML HLS Video broken on macOS with Apple M1 chip

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.15.8
    • Multimedia
    • None
    • macOS

    Description

      Follow up from fix https://bugreports.qt.io/browse/QTBUG-89803

      While video playback works to play video files on M1 with the provided fix from QTBUG-89803, HLS playback is still broken. The video container size is not taken into account once the stream switches the resolution.

      Steps to reproduce:

      1. Add attached minimal example to a QML file with macOS M1 build target
      2. Wait until the stream switches to 1920p (you see the resolution within the video), this takes around 10 seconds
      3. Resize the window

      Intended behavior: 

      The video resizes within the container, the stream switches resolution if there is a smaller suitable

      Actual behavior:

      After the first resize of window, the video is rendered in full resolution, clipping the window:

      Screenshots:

      Minimal example:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtMultimedia 5.15
      
      Window {
        visible: true
        width: 800
        height: 600
        title: qsTr("Hello World")  Video {
          source: "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8"
          anchors.fill: parent
          autoPlay: true
        }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              alexleutgoeb Alex Leutgöb
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes