XBMC Kodi字幕没有显示

时间:2017-08-14 21:42:08

标签: python xbmc kodi

我正在尝试使用带有视频的字幕轨道,但我的字幕没有出现。这是srt文件:

https://adbience-staging.s3-us-west-2.amazonaws.com/podcast_srt_english_b9e728d9-7953-4ff6-b287-e150be3d4b45

我的代码如下:

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)

但是字幕永远不会出现在图层中。我做错了吗?

0 个答案:

没有答案