我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用xbmc.PLAYER_CORE_AUTO。
def direct_play(url): _log("direct_play ["+url+"]") title = "" try: xlistitem = xbmcgui.ListItem( title, iconImage="DefaultVideo.png", path=url) except: xlistitem = xbmcgui.ListItem( title, iconImage="DefaultVideo.png", ) xlistitem.setInfo( "video", { "Title": title } ) playlist = xbmc.PlayList( xbmc.PLAYLIST_VIDEO ) playlist.clear() playlist.add( url, xlistitem ) player_type = xbmc.PLAYER_CORE_AUTO xbmcPlayer = xbmc.Player( player_type ) xbmcPlayer.play(playlist)
def __init__(self): self._stopped = False self._totalTime = 999999 xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)