Page 1 of 1

M3U fails to play

Posted: 17 Sep 2024 22:08
by Roxus
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

Re: M3U fails to play

Posted: 18 Sep 2024 09:20
by fkuehne
Yes, you need to request a hole in the sandbox to access files.

Re: M3U fails to play

Posted: 18 Sep 2024 17:33
by Roxus
Why does the MP3 play directly then ?

Re: M3U fails to play

Posted: 18 Sep 2024 17:38
by fkuehne
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.

Re: M3U fails to play

Posted: 18 Sep 2024 20:08
by Roxus
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

Re: M3U fails to play

Posted: 28 Sep 2024 18:38
by fkuehne
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.