Click on subtitle and go to associated url

This forum is about all development around libVLC.
pivoo
New Cone
New Cone
Posts: 9
Joined: 29 Jul 2011 08:50

Click on subtitle and go to associated url

Postby pivoo » 26 Dec 2014 11:32

Hi everyone!
I am sorry, I don't know if I post in correct forum.

I need to develop such module, which will open http link in browser when user click on subtitle.
Subtitles are in .ass format, and the link will be in "name" attribute of subtitle.

With some changes to VLC code I can process mouse actions within my subtitle filter module, but I can't understand how can I pass custom information from libass codec module to my filter.
I need to pass some array of structures which will contain coordinates of subtitle region, it's showing time and associated http link.
But I can see that it is only subpicture_t structures returns from libass, in which I don't know how to put needed information.

Could you advise me something?

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: Click on subtitle and go to associated url

Postby Jean-Baptiste Kempf » 02 Jan 2015 18:05

You can use variables and callbacks 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 53 guests