2021-06-14, 19:29
How can I SET SUBTITLES via python?
I know I can get the subtitle information of the currently played video stream using json:
I would like to SET one of the available subtitles via a python script.
Appreciate any help. Thanks!
I know I can get the subtitle information of the currently played video stream using json:
Code:
{"jsonrpc": "2.0", "method": "Player.GetProperties", "id": 1, "params": {"playerid": 1, "properties": ["subtitles", "currentsubtitle", "subtitleenabled"]}}
I would like to SET one of the available subtitles via a python script.
Appreciate any help. Thanks!