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

[Mac] QMediaTimeRange QMediaPlayerControl::availablePlaybackRanges () const is not working as advertised.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 1.1.x, 1.2.x
    • 1.1.1
    • Multimedia
    • None
    • Mac
    • ecf92fba582267dbcedf2445b2162d8e766d85e8

      The documentation of QMediaPlayerControl::availablePlaybackRanges () says :

      "Usually for local files this is a continuous interval equal to [0..duration()] or an empty time range if seeking is not supported, but for network sources it refers to the buffered parts of the media."

      The last part is completely wrong. At least looking at the QT7 and GStreamer backend there is no such code :

      QMediaTimeRange QT7PlayerControl::availablePlaybackRanges() const
      {
      QMediaTimeRange result;

      if (isSeekable())
      result.addInterval(0, duration());

      return result;
      }

      And the GStreamer backend has the same implementation.

      Can be reproduced building webkit trunk, running QtTestBrowser and playing a video on tiny.cc/wkmedia, the timeline shows the video is completely buffered which is wrong.

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

            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes