[vlc-devel] [PATCH] VLC for iOS integration patch: call VLC via well formed URL, omit download/stream question, specify switch-back URL to return to caller
Ulrich Trampe
ulrich.trampe at googlemail.com
Sat Oct 4 14:17:33 CEST 2014
VLC for iOS integration patch: call VLC via well formed URL, omit download/stream question, specify switch-back URL to return to caller
This patch allows VLC for iOS to be a seamlessly integrated in other apps, to stream a video from a given URL and then automatically return to the calling app when the user presses "Done". The other app calls VLC for iOS with a well-formed app-URL call:
vlc:///stream?url=...&switchback=...
The path "stream" is telling VLC to stream something. Knowing that, it can omit the "download or stream" question introduced recently. The parameter "url" gives the location of the video to stream. The parameter "switchback" tells VLC what app-URL to call when the user presses "Done". Both the "url" and the "switchback" parameter have to be encoded with percent escapes, to not mess up the well-formed URL scheme of the whole call.
The new mechanism does not compromise the "old" way of calling VLC with app-URLs like
vlc://http://anyserver.com/location/video.mov
These calls, although not well-formed, will still work as before.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VLC-integration-patch.patch
Type: application/octet-stream
Size: 3895 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141004/4f532c66/attachment.obj>
More information about the vlc-devel
mailing list