Tugzrida
Tugzrida

Reputation: 521

Stream to VLC for iOS via URL Scheme

I'm trying to link to the iOS VLC app via its URL scheme. I need to open a FLV file(preferably as a stream, rather than downloading). I have tried vlc://http://domain.com/path/to/video.flv which opens VLC with a popup asking if I would like to play or download. Tapping download works, however play doesn't do anything except close the popup(I can get it to eventually work if I tap Play in the popup -> Play in Control Centre -> tap back in VLC). Is there a way to get it to play by directly through the URL?

Bonus points if you figure out how to select the "Scan for Subtitles" option in the "Open Network Stream" section of VLC. ;)

I've looked all over Google and can't find any documentation of the URL scheme. Any help is greatly appreciated.

Upvotes: 6

Views: 14738

Answers (2)

Weston
Weston

Reputation: 137

For those who want to add subtitle it has been added in this commit and can be used like this:

vlc-x-callback://x-callback-url/stream?url=http://example.com/dogs.mp4&sub=https://example.com/dogs.srt

Upvotes: 4

feepk
feepk

Reputation: 1831

the vlc:// pseudo protocol is broken in the current 2.6.4 release - it is fixed in 2.6.5 which is currently waiting for review by Apple. I hope that it will be out this week but this is beyond our control.

Generally speaking, I recommend to use another protocol though based on x-callback-url, documented on our wiki: https://wiki.videolan.org/Documentation:IOS/#x-callback-url

Regarding an extra subtitles URL, this is currently not supported. We could add it though, it's just that nobody asked for it so far.

Upvotes: 4

Related Questions