How to embed VLC for iOS in Webpage / Trigger the App from Webpage

iOS, iPad, iPhone, tvOS specific usage questions
lalkaef
New Cone
New Cone
Posts: 4
Joined: 28 Apr 2015 15:30

How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby lalkaef » 28 Apr 2015 15:34

Hy Dudes & Dudienies,

i want to ask you if there is any possibility to embed the VLC Player for iOS in an Webpage/Webapp ? I want to Stream an RTSP Stream to the Player (i have to use the VLC because the html 5 Video Player doesnt support the RTSP Protocol). Or is there any chance to trigger the VLC Player for iOS App from the Webpage so that it opens with the right login and streaming informations ?

Thanks for reading :)

best regards,
Markus

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby fkuehne » 29 Apr 2015 12:10

Yes, we have a custom URL protocol which allows you to trigger playback in VLC from a website or third party application as long as the user got the app installed. You can find documentation here: https://wiki.videolan.org/Documentation ... llback-url
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

lalkaef
New Cone
New Cone
Posts: 4
Joined: 28 Apr 2015 15:30

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby lalkaef » 29 Apr 2015 13:44

Okay, da du aus Deutschland bist kann ich ja auch auf Deutsch schreiben, das macht es um einiges einfacher.
Als erstes schon mal ein riesen Danke für die schnelle Antwort ! Ich habe jetzt eine weile gegoogelt um mehr zum Thema herauszufinden, allerdings konnte ich noch nicht feststellen wie ich das auf einer Website (PHP & HTML) integriere, oder muss ich da über umwege gehen ? Leider ließ sich zu dieser Problematik kein beispiel Implementierung finden. Kannst du mir eventuell kurz mit eins zwei Sätzen erklären wie ich das auf meiner Website einbinde ?

Beste Grüße,
Markus

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby fkuehne » 30 Apr 2015 13:36

This is an English speaking forum only so all users can benefit from the answers we give.

To integrate this in a typical website, just do a regular link as in

Code: Select all

<a href="vlc-x-callback://x-callback-url/ACTION?url=">Click here for playback in VLC</a>
with the respective URL and options you want.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

lalkaef
New Cone
New Cone
Posts: 4
Joined: 28 Apr 2015 15:30

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby lalkaef » 05 May 2015 14:28

Thank you very much ! This Solution was the right one for me :)

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby fkuehne » 05 May 2015 19:01

Great to hear, enjoy!
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

lalkaef
New Cone
New Cone
Posts: 4
Joined: 28 Apr 2015 15:30

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby lalkaef » 06 May 2015 13:25

Hy Felix, thanks for the last helping-session :)
I`ve got another two questions. Is there any possibility to get move to the host app ? So, my intesion is that a picture is linked with the vlc-callback link, and if the user touch them, the vlc for ios opens and play the stream (works perferctly ! :)), and, if the user is done with his work, he touch the button "done" or "fertig" in the vlc for ios app und then he must be automatically moved to the host app (for example safari where he startet the vlc for ios app) :-) is thios possible or is this not the right way ? Another question is, is it possible to embed the vlc player on the website so that the vlc for ios app doesnt appears and play the stream directly inside the website ?

best regards, Markus

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to embed VLC for iOS in Webpage / Trigger the App from Webpage

Postby fkuehne » 07 May 2015 13:30

If you provide the x-success parameter, VLC should direct the user back to the given URL. Version 2.5.0 also introduced the x-error parameter to send the user to a different URL in case playback failed.

On iOS, there are no browser plugins and there will never be. Therefore, it is not possible for VLC to render anything in the context of Safari or Chrome.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


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

Who is online

Users browsing this forum: No registered users and 13 guests