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

Android: MediaPlayer is unstable when streaming mp4 video

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.1.0
    • Multimedia
    • None
    • Qt Creator 2.7.2 based on Qt 5.1.0 (32bit). Android for ARM (GCC 4.7, Qt 5.1.0). Test device is Nexus 4.
    • 4585518d523ec5fcc2c0e35f472926d060ca7871

    Description

      I tried to create a simple qml file to play a video from a URL.
      It works when run on the desktop, but it fails most of the times when run on Android.
      In Android, I noticed that works with small videos (i.e: http://techslides.com/demos/sample-videos/small.mp4), but fails with longer ones (i.e: http://download.qt-project.org/learning/videos/Qt5_Thiago_Macieira_on_Qt_Core.mp4). The long video works sometimes after a few attempts. Might it be related to some sort of timeout when the Wi-Fi connection is not good enough?

      These lines are printed in the android Log when the video cannot be loaded:

      D/MediaPlayer(29354): Couldn't open file on client side, trying server side
      E/MediaPlayer(29354): Attempt to call getDuration without a valid mediaplayer
      E/MediaPlayer(29354): error (-38, 0)
      E/MediaPlayer(29354): Error (-38,0)

      The first line is printed when it is starting to load the video, while the last 3 lines appear after 3-4 seconds. When it works the last 3 lines are not printed.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            infaust Faust Terrado
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes