External subtitles seems to be supported

iOS, iPad, iPhone, tvOS specific usage questions
vbastianpc
New Cone
New Cone
Posts: 5
Joined: 31 Mar 2021 04:00

External subtitles seems to be supported

Postby vbastianpc » 27 Sep 2021 21:50

I have noticed that in the source code of VLC for iOS there is an additional parameter sub for x-callback that is not in the iOS documentation.

I have an external video and an external subtitle. I want to watch them on VLC (no downloading)
https://download-a.akamaihd.net/files/c ... _cnt_1.vtt Spanish subtitles
https://download-a.akamaihd.net/files/c ... _r720P.mp4 Video with English audio and embedded English subtitles


So the x-callback would be

Code: Select all

vlc-x-callback://x-callback-url/stream?url=https://download-a.akamaihd.net/files/content_assets/10/502200113_E_cnt_1_r720P.mp4&sub=https://download-a.akamaihd.net/files/content_assets/c1/502200113_S_cnt_1.vtt

You can test the x-callback by copying and pasting in safari, and you will see that VLC only shows the english subtitles embedded in the video, but not the external spanish subtitles.

What am I doing wrong? How can I play an external video with external subtitles, either with x-callback or with a playlist?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: External subtitles seems to be supported

Postby InTheWings » 28 Sep 2021 09:58

it requires vlc options which are not passed through callback syntax
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

vbastianpc
New Cone
New Cone
Posts: 5
Joined: 31 Mar 2021 04:00

Re: External subtitles seems to be supported

Postby vbastianpc » 08 Apr 2022 17:16

Thanks to new iOS updates of VLC 3.3.x, now it's possible to play a video with external subtitles using x-callback.

Code: Select all

vlc-x-callback://x-callback-url/stream?url=<video-url>&sub=<subs-url>



For example:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=https://download-a.akamaihd.net/files/content_assets/10/502200113_E_cnt_1_r720P.mp4&sub=https://download-a.akamaihd.net/files/content_assets/c1/502200113_S_cnt_1.vtt

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

Re: External subtitles seems to be supported

Postby fkuehne » 09 Apr 2022 09:35

Thanks a lot for the confirmation! Enjoy!
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

vbastianpc
New Cone
New Cone
Posts: 5
Joined: 31 Mar 2021 04:00

Re: External subtitles seems to be supported

Postby vbastianpc » 13 Apr 2022 18:00

Thanks to the entire VLC development team for their impressive work. The new update of VLC for iOS is full of new features and an improved design. Thank you very much.


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

Who is online

Users browsing this forum: No registered users and 6 guests