vlc-x-callback with local files and loop options

iOS, iPad, iPhone, tvOS specific usage questions
atow
New Cone
New Cone
Posts: 1
Joined: 17 Jun 2021 00:58

vlc-x-callback with local files and loop options

Postby atow » 17 Jun 2021 01:22

Three questions:

1. Is there a way to reference local files on the iOS device when using the vlc-x-callback URL. Instead of:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=http://HOSTNAME.local/download//private/var/mobile/Containers/Data/Application/UUID/Documents/FILENAME.mp4
can we do something like:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=localhost/FILENAME.mp4
Where FILENAME.mp4 refers to a video located in the Video tab of VLC.

2. Are there plans to additional addition playback controls to the vlc-x-callback URL scheme such as Repeat 1, Repeat All, or Playlist specification? Right now, using the URL scheme will play a single video and then stop.

3. Is the telnet server available on VLC for iOS?

RomanViking
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2021 13:14

Re: vlc-x-callback with local files and loop options

Postby RomanViking » 28 Jul 2021 15:37

I am afraid I do not have the solution, but thought I would share some conclusions of my experiments (iOS 14.6, VLC 3.2.13). Maybe it will shed some light.

  1. If you download a file (e.g. https://file-examples-com.github.io/upl ... _700KB.mp3) via the 'Network' icon at the bottom, then it is stored in a folder visible inside the 'VLC' folder in the 'Files' app.
  2. The downloaded file is automatically added to the VLC library ('Audio' > 'Songs' in VLC). Any changes to its name done in the 'Files' app are automatically reflected in the VLC library (meaning that VLC actively re-scans the folder)
  3. It is possible to create a x-callback request to a network resource as defined in the Wiki (https://wiki.videolan.org/Documentation ... llback-url). The easiest way to test this is using the 'Shortcuts' app (there: 'My Shortcuts' > '+' > 'Add Action' > 'Scripting' > 'Open X-Callback URL' > 'vlc-x-callback://x-callback-url/stream?url=https://file-examples-com.github.io/upl ... _700KB.mp3' (or any other url) > 'Next' > 'Test' (or any other name) > 'Done'). Then run the freshly created callback from the 'Shortcuts' app.
  4. Analogically, it should be able to reference a local file. Unfortunately, none of the obvious references I tried seem to work:
    • vlc-x-callback://x-callback-url/stream?url=file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=VLC/file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=/file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=/VLC/file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=file:///file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=file:///VLC/file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=file:////file_example_MP3_700KB.mp3
    • vlc-x-callback://x-callback-url/stream?url=file:////VLC/file_example_MP3_700KB.mp3
So the question boils down to how should we reference a local file. It is most likely stored somewhere similar to:
  • vlc-x-callback://x-callback-url/stream?url=file:///var/mobile/Containers/Data/Application/{UID}/file_example_MP3_700KB.mp3
  • vlc-x-callback://x-callback-url/stream?url=file:///var/mobile/Containers/Data/Application/{UID}/VLC/file_example_MP3_700KB.mp3
However, the {UID} is different on every phone, is most probably changing every time the VLC app is updated, and is difficult to retrieve on non jail-broken devices. It seems to me that using the more abstract reference to the filesystem (similar to one of the 8 examples above) would be a much better option.

Any feedback and suggestions are most welcome!


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

Who is online

Users browsing this forum: No registered users and 14 guests