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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.0, 1.2.x
    • 1.1.1
    • Multimedia
    • None
    • Linux
    • 249d4002929ce20d476c74a8c86e2e0b250bbf9a

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              poplavsk Dmytro Poplavskiy (Inactive)
              alexis.menard Alexis Menard
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: