Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.15.0
-
None
Description
note this bug report comes with a free SOLUTION (see step 6)
repro steps:
- on mac, open example project "Video Widget"
- in AVFMediaPlayerSession, put a breakpoint on line 543 (inside static void setURL() ), if you can't, then in videoplayer.cpp, put breakpoint on line 124 (m_mediaPlayer->setMedia(url); )
- run and open a file that has a space in its path
- hit the breakpoint. if you could not break into AVFMPS, step in until you get to the static setURL() function
- note that NSURL *nsurl = [NSURL URLWithString:urlString]; is NULL since the url string is NOT percent escaped, therefore this entire thing will fail
- in AVFMediaPlayerSession, line 595, add "QUrl::FullyEncoded" as a parameter to the "toString()" call
- run and open a file that has a space in its path
- now it works???
- ship it
Attachments
Issue Links
- duplicates
-
QTBUG-84585 QMediaPlayer fails to play media from resource when app name has spaces
- Closed