def play_video(path):
"""
Play a video by the provided path.
:param path: str
"""
# Get the list of videos in the category.
url = get_video(path)
print("play_video:url={0}".format(url))
# Create a playable item with a path to play.
play_item = xbmcgui.ListItem(path=url)
# Pass the item to the Kodi player.
xbmcplugin.setResolvedUrl(_handle, True, listitem=play_item)
评论列表
文章目录