playvideo.py 文件源码

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

项目:forthelulz 作者: munchycool 项目源码 文件源码
def play_video(path):
    """
    Play a video by the provided path.
    :param path: str
    """
    # Create a playable item with a path to play.
    play_item = xbmcgui.ListItem(path=path)
    # Pass the item to the Kodi player.
    xbmcplugin.setResolvedUrl(addon_handle, True, listitem=play_item)

# addon kicks in
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号