Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. MediaPlayer error on QT5.5 with IOS9
Forum Updated to NodeBB v4.3 + New Features

MediaPlayer error on QT5.5 with IOS9

Scheduled Pinned Locked Moved Mobile and Embedded
ios mediaplayer
5 Posts 3 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    renatobibiano
    wrote on last edited by renatobibiano
    #1

    Hello all.

    After updating my QT to 5.5 and my IOS to 9, I tried to run my app on my iphone 5s. My app is a simple Podcast App, that plays audios saved on an AWS S3 storage. Everything worked fine before. But now it's not loading the audios. After checking the status of the MediaPlayer, I got the value 8 (QMediaPlayer::InvalidMedia).

    The error only happens on my iphone, when I run it on the desktop, everything works!

    How can I solve this?

    Regards,
    Renato.

    1 Reply Last reply
    1
    • R Offline
      R Offline
      renatobibiano
      wrote on last edited by
      #2

      I tried with a local MP3 file and it works, but my problem is with MP3 from an URL

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Albus
        wrote on last edited by
        #3

        I have the same situation. But a slightly difference is, Qt5.5 works fine in iOS8. After iOS9 upgrade, the remote mp3 file is not valid anymore.

        Is this caused by Apple new policy?ref: https://developer.apple.com/videos/play/wwdc2015-703/

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scooby
          wrote on last edited by
          #4

          Hello, I have the same situation too. Trying to play a .MP4 from URL not working anymore on ios.( OS X is fine ). The issue seems to come from Xcode7. I tried to compile using xcode6 and to install on ios9 and it worked ! I saw a fix coming with 5.5.1. Any idea when it will be released ?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            scooby
            wrote on last edited by
            #5

            Adding in Info.plist:

                <key>NSAppTransportSecurity</key>
                     <dict>
                          <key>NSAllowsArbitraryLoads</key><true/>
                     </dict>
            

            fixed my issue. ( not 5.5.1 update ).

            SSL behavior is different in iOS9.....

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved