python - XBMC Kodi Subtitles Not Showing -
i trying subtitle track play video, subtitles not appearing. srt file:
my code follows:
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 being played player.setsubtitles(subtitlesurl) player.showsubtitles(true) xbmc.player().setsubtitles(subtitlesurl) player.play(item=file, listitem=items) downloadsubtitles(subtitle_file)
but subtitles never show in layer. doing wrong?
Comments
Post a Comment