main.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:kodi-addons 作者: leonardoxiao 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号