Get current subtitle

This forum is about all development around libVLC.
vit_iwnlyd
New Cone
New Cone
Posts: 1
Joined: 20 Dec 2018 18:58

Get current subtitle

Postby vit_iwnlyd » 20 Dec 2018 19:08

Hello!

I was thinking of an addon that extracts the currently shown subtitle so that I can copy/paste the words from it (it is very convenient when you want to translate an unknown word, for instance).

So, is there any way to get the text currently shown on the screen via some method? I have checked the official guide and tried to google, but I hardly found anything.

I would really appreciate your help!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Get current subtitle

Postby Jean-Baptiste Kempf » 20 Jan 2019 22:38

So far, there is no API for that. It's a common request, but there is no simple way for now.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

muven89
New Cone
New Cone
Posts: 1
Joined: 21 Jan 2019 16:47

Re: Get current subtitle

Postby muven89 » 21 Jan 2019 16:50

how can we achieve this ? i want to get current subtitle cue

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Get current subtitle

Postby Jean-Baptiste Kempf » 10 Feb 2019 22:16

You need to do a specific text rendering module that has an api for this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests