Can subtitles also be returned as part of the playlist?
Posted: 22 Mar 2017 22:40
Hello,
I'm in the process of writing an LUA script for parsing an external data source, feeding it back to VLC with the parse() function. Now the documentation on that function states that it has to return playlist item(s), those items being, amongst others,
Now, what's not mentioned in there, is an option to return subtitles. But my data source provides them. So is there such an option?
Thanks
Ps: sorry, it's not related to the main question, but if one could help out, that would be great. My data source is a JSON file providing the following formats:
I believe the f4m manifest cannot be read by VLC, but other than that one, is there any format which should be given preference over the others? Is there a particular format VLC is more comfortable with? ... I'm currently parsing them in the order mentioned above.
I'm in the process of writing an LUA script for parsing an external data source, feeding it back to VLC with the parse() function. Now the documentation on that function states that it has to return playlist item(s), those items being, amongst others,
Code: Select all
.path: the item's full path / URL
.name: the item's name in playlist (OPTIONAL)
.title: the item's Title (OPTIONAL, meta data)
.artist: the item's Artist (OPTIONAL, meta data)
...
Thanks
Ps: sorry, it's not related to the main question, but if one could help out, that would be great. My data source is a JSON file providing the following formats:
Code: Select all
"PROGRESSIVE_DOWNLOAD","url":"https://...mp4"}
"HLS","url":"https://.../playlist.m3u8"},
"HDS","url":"http://.../video.smil/manifest.f4m"},
"RTMP","url":"rtmp://....mp4"},
"RTSP","url":"rtsp://....mp4"}