2017-08-12, 22:48
I am trying to get a subtitle track to play with a video, but my subtitles are not appearing. This is the srt file:
https://adbience-staging.s3-us-west-2.am...50be3d4b45
My code is as follows:
But the subtitles never show up in the layer. Am i doing something wrong?
https://adbience-staging.s3-us-west-2.am...50be3d4b45
My code is as follows:
Code:
player = ExamplePlayer()
subtitle_file='https://adbience-staging.s3-us-west-2.amazonaws.com/podcast_srt_english_b9e728d9-7953-4ff6-b287-e150be3d4b45'
def downloadSubtitles(subtitlesUrl):
global player
while not player.isPlaying():
xbmc.sleep(5) #wait until video is being played
player.setSubtitles(subtitlesUrl)
player.showSubtitles(True)
xbmc.Player().setSubtitles(subtitlesUrl)
player.play(item=file, listitem=items)
downloadSubtitles(subtitle_file)
But the subtitles never show up in the layer. Am i doing something wrong?