Ability to access the subtitle info?
Posted: 10 Jul 2012 23:36
I'd like to write a VLC extension that outputs the subtitle info to a tcp port. So instead of using the OSD it would write the subtitles to a socket.
My preferred method would be to access the subtitles via VLCs lua methods. However, I haven't been able to find any methods available that allow a lua script to access the subtitles.
Does anyone know if that is possible?
I guess another method would be to have the lua script open the srt file and trigger when the proper time is reached. I see a method for add_subtitle, is there a corresponding get_subtitle, which would return the subtitle data? Or do I have to use a dialog and have the user load the srt file?
Thanks,
Steve
My preferred method would be to access the subtitles via VLCs lua methods. However, I haven't been able to find any methods available that allow a lua script to access the subtitles.
Does anyone know if that is possible?
I guess another method would be to have the lua script open the srt file and trigger when the proper time is reached. I see a method for add_subtitle, is there a corresponding get_subtitle, which would return the subtitle data? Or do I have to use a dialog and have the user load the srt file?
Thanks,
Steve