forthelulzfunctions.py 文件源码

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

项目:forthelulz 作者: munchycool 项目源码 文件源码
def playMedia(title, thumbnail, link, mediaType='Video') :
    """Plays a video

    Arguments:
    title: the title to be displayed
    thumbnail: the thumnail to be used as an icon and thumbnail
    link: the link to the media to be played
    mediaType: the type of media to play, defaults to Video. Known values are Video, Pictures, Music and Programs
    """
    li = xbmcgui.ListItem(label=title, iconImage=thumbnail, thumbnailImage=thumbnail, path=link)
    li.setInfo(type=mediaType, infoLabels={ "Title": title })
    xbmc.Player().play(item=link, listitem=li)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号