M3U fails to play

iOS, iPad, iPhone, tvOS specific usage questions
Roxus
New Cone
New Cone
Posts: 5
Joined: 30 Apr 2009 00:08

M3U fails to play

Postby Roxus » 17 Sep 2024 22:08

M3U file on iPad gets the relative file from the list and fails to open the file with "Operation Not Permitted"
MP3 file on iPad opens and plays fine on its own.

excerpt from the MP3 playing log :

Code: Select all

[DBG] creating access: file:///private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon%20Music/Various%20artists/Guardians%20of%20the%20Galaxy%20Awesome%20Mix%20Vol%201%20(Original%20Motion%20Picture%20Soundtrack)/06%20-%20I'm%20Not%20in%20Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3 [DBG] (path: /private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon Music/Various artists/Guardians of the Galaxy Awesome Mix Vol 1 (Original Motion Picture Soundtrack)/06 - I'm Not in Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3) [DBG] looking for access module matching "file": 66 candidates [DBG] using access module "filesystem" ... [DBG] `file:///private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon%20Music/Various%20artists/Guardians%20of%20the%20Galaxy%20Awesome%20Mix%20Vol%201%20(Original%20Motion%20Picture%20Soundtrack)/06%20-%20I'm%20Not%20in%20Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3' successfully opened [DBG] Buffering 0%
as compared to from the M3U attempt :

Code: Select all

[DBG] creating access: file:///private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon%20Music/Various%20artists/Guardians%20of%20the%20Galaxy%20Awesome%20Mix%20Vol%201%20(Original%20Motion%20Picture%20Soundtrack)/06%20-%20I'm%20Not%20in%20Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3 [DBG] (path: /private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon Music/Various artists/Guardians of the Galaxy Awesome Mix Vol 1 (Original Motion Picture Soundtrack)/06 - I'm Not in Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3) [DBG] looking for access module matching "file": 66 candidates [ERR] cannot open file /private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/B6777B12-A51C-32B3-AB0D-51241F6F34BD/Amazon Music/Various artists/Guardians of the Galaxy Awesome Mix Vol 1 (Original Motion Picture Soundtrack)/06 - I'm Not in Love_4e0404df-5a27-4f6e-8010-057a060ab54e.mp3 (Operation not permitted)
Any advice ?

Thanks

M3U failed playback log
MP3 successful playback log

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: M3U fails to play

Postby fkuehne » 18 Sep 2024 09:20

Yes, you need to request a hole in the sandbox to access files.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Roxus
New Cone
New Cone
Posts: 5
Joined: 30 Apr 2009 00:08

Re: M3U fails to play

Postby Roxus » 18 Sep 2024 17:33

Why does the MP3 play directly then ?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: M3U fails to play

Postby fkuehne » 18 Sep 2024 17:38

I cannot tell without knowing your code. Probably you request access to the mp3 with something like

Code: Select all

[NSURL startAccessingSecurityScopedResource]
after finding the file with a system file picker? By doing that, your app will be granted access to that file but not to any further files mentioned in the m3u.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Roxus
New Cone
New Cone
Posts: 5
Joined: 30 Apr 2009 00:08

Re: M3U fails to play

Postby Roxus » 18 Sep 2024 20:08

Im just using the VLC that I got from App Store for the iPad, trying to play an M3U list on a USB thumbdrive plugged into the iPad
No dev work, just usage problems

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: M3U fails to play

Postby fkuehne » 28 Sep 2024 18:38

Sorry, misunderstood your request. Yes, VLC does not handle playlists with references outside the app container correctly at the moment. This is not overly complex but tiresome to do, so it wasn't done so far due to limited resources.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 5 guests