Python xbmc.PLAYER_CORE_AUTO Examples
The following are 10
code examples of xbmc.PLAYER_CORE_AUTO().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
xbmc
, or try the search function
.
Example #1
Source File: plugintools.py From tvalacarta with GNU General Public License v3.0 | 6 votes |
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)
Example #2
Source File: plugintools.py From tvalacarta with GNU General Public License v3.0 | 6 votes |
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)
Example #3
Source File: plugintools.py From pelisalacarta-ce with GNU General Public License v3.0 | 6 votes |
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)
Example #4
Source File: sopcast.py From program.plexus with GNU General Public License v2.0 | 5 votes |
def onPlayBackStarted(self): mensagemprogresso.close() if xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile() != "http://"+LOCAL_IP+":"+str(VIDEO_PORT)+"/" and 'sopcast' not in xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile(): try: os.kill(self.spsc_pid,9) except: pass else: pass
Example #5
Source File: sopcast.py From program.plexus with GNU General Public License v2.0 | 5 votes |
def onPlayBackEnded(self): url = "http://"+LOCAL_IP+":"+str(VIDEO_PORT)+"/" xbmc.sleep(300) if os.path.exists("/proc/"+str(self.spsc_pid)) and xbmc.getCondVisibility("Window.IsActive(epg.xml)") and settings.getSetting('safe_stop')=="true": if not xbmc.Player(xbmc.PLAYER_CORE_AUTO).isPlaying(): player = streamplayer(xbmc.PLAYER_CORE_AUTO , spsc_pid=self.spsc_pid , listitem=self.listitem) player.play(url, self.listitem) try: xbmcvfs.delete(os.path.join(pastaperfil,'sopcast.avi')) except: pass
Example #6
Source File: sopcast.py From program.plexus with GNU General Public License v2.0 | 5 votes |
def onPlayBackStopped(self): self._playbackLock = False url = "http://"+LOCAL_IP+":"+str(VIDEO_PORT)+"/" xbmc.sleep(300) if os.path.exists("/proc/"+str(self.spsc_pid)) and xbmc.getCondVisibility("Window.IsActive(epg.xml)") and settings.getSetting('safe_stop')=="true": if not xbmc.Player(xbmc.PLAYER_CORE_AUTO).isPlaying(): player = streamplayer(xbmc.PLAYER_CORE_AUTO , spsc_pid=self.spsc_pid , listitem=self.listitem) player.play(url, self.listitem) else: try: os.kill(self.spsc_pid,9) except: pass try: xbmcvfs.delete(os.path.join(pastaperfil,'sopcast.avi')) except: pass
Example #7
Source File: myplayer.py From xbmc-addons-chinese with GNU General Public License v2.0 | 5 votes |
def __init__(self): self._stopped = False self._totalTime = 999999 xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)
Example #8
Source File: myplayer.py From plugin.video.bdyun with GNU General Public License v3.0 | 5 votes |
def __init__(self): self._stopped = False self._totalTime = 999999 xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)
Example #9
Source File: main.py From filmkodi with Apache License 2.0 | 5 votes |
def getPlayerType(self): sPlayerType = common.getSetting('playerType') if (sPlayerType == '0'): return xbmc.PLAYER_CORE_AUTO elif (sPlayerType == '1'): return xbmc.PLAYER_CORE_MPLAYER elif (sPlayerType == '2'): return xbmc.PLAYER_CORE_DVDPLAYER # PLAYER_CORE_AMLPLAYER elif (sPlayerType == '3'): return 5 return xbmc.PLAYER_CORE_AUTO
Example #10
Source File: default.py From filmkodi with Apache License 2.0 | 5 votes |
def getPlayerType(self): return True sPlayerType = ptv.getSetting('playerType') if (sPlayerType == '0'): return xbmc.PLAYER_CORE_AUTO elif (sPlayerType == '1'): return xbmc.PLAYER_CORE_MPLAYER elif (sPlayerType == '2'): return xbmc.PLAYER_CORE_DVDPLAYER # PLAYER_CORE_AMLPLAYER elif (sPlayerType == '3'): return 5 return xbmc.PLAYER_CORE_AUTO