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

When using load() it gives items one at a time to addMedia, this should instead pass a list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.6.3
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Ubuntu Touch, potentially others

      Description

      When using the load() method of a Playlist for the MediaPlayer, it was found that performance is slow due to the readItems method that load uses passing each item to addMedia individually.

      Instead this should pass the items as a list, please find attached a patch which changes this.

      Let me know if you would like the code submitted in a different way such as a branch?

      Note, however, that when testing with qtubuntu-media I'm still getting individual signals for each addition instead of one, but the performance has greatly improved (from ~0.2s for each item to add, to nearly instant for 100 additions) . I'm wondering if I'm using the wrong playlist() with the addMedia ? or if there needs to be a tweak within qtubuntu-media?

        Attachments

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

          Activity

            People

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            ahayzen Andrew Hayzen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes