[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

Felix Paul Kühne fkuehne at videolan.org
Sat Oct 4 14:33:50 CEST 2014


Hello Ulrich,

Thanks for your patch.

> On 04 Oct 2014, at 14:17, Ulrich Trampe <ulrich.trampe at googlemail.com> wrote:
> 
> 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.

Instead of adding support for another custom protocol scheme to suit your use-case, would it be possible to implement it in a x-callback-url compliant way?

Thanks,

Felix


More information about the vlc-devel mailing list