Test per freeze kodi da videoteca

This commit is contained in:
mac12m99
2021-08-21 16:55:18 +02:00
parent daae458952
commit 1bdbc18926
2 changed files with 5 additions and 1 deletions

View File

@@ -1780,7 +1780,12 @@ def prevent_busy(item):
if not item.autoplay and not item.window:
if item.globalsearch: xbmc.Player().play(os.path.join(config.get_runtime_path(), "resources", "kod.mp4"))
else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
# first wait the fake video to start
while not is_playing():
xbmc.sleep(10)
# then wait a little more
xbmc.sleep(200)
# and then stop it
xbmc.Player().stop()
# xbmc.executebuiltin('Action(Stop)')
# xbmc.sleep(500)