2018-11-20, 02:03
Hi, guys thanks my question is if can load a remote srt file from a web server like a video file? i am testing some json information like this:
i can play the remote video but i can read the srt file?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UPDATE1:
i found the next: list_item.setSubtitles([subtitles])
but when i set in main.py i get the next error TypeError: 'The parameter "subtitleFiles" must be either a Tuple or a List.
UPDATE2:
Problem Solved.
json:
{
"ID": "2",
"name": "Test Movie",
"video": "http://172.16.254.15:7071/moviea.mkv",
"thumb": "http://172.16.254.15:7071/moviea.png",
"srtfile": "http://172.16.254.15:7071/moviea.srt",
"genre": "Movies"
}
i can play the remote video but i can read the srt file?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UPDATE1:
i found the next: list_item.setSubtitles([subtitles])
])python:
list_item.setSubtitles([video['srtfile'])
but when i set in main.py i get the next error TypeError: 'The parameter "subtitleFiles" must be either a Tuple or a List.
UPDATE2:
Problem Solved.