当前位置: 首页>>代码示例>>Python>>正文


Python MoviePlayer.__init__方法代码示例

本文整理汇总了Python中Screens.InfoBar.MoviePlayer.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python MoviePlayer.__init__方法的具体用法?Python MoviePlayer.__init__怎么用?Python MoviePlayer.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Screens.InfoBar.MoviePlayer的用法示例。


在下文中一共展示了MoviePlayer.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, sref, playlist, playlistName, playlistCB):
		self.onPlayService = []
		self.sref = sref
		MoviePlayer.__init__(self, session, sref)
		InfoBarPlaylist.__init__(self, playlist, playlistCB, playlistName)
		# SubsSupport.__init__(self, subPath=subtitles, alreadyPlaying=True)
		self.skinName = "MoviePlayer"
开发者ID:natko1412,项目名称:archivczsk,代码行数:9,代码来源:player.py

示例2: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, playlist, notifyNextEntry=None, flags=None):
		self.session = session
		self.flags = flags
		self.playlist = self.fixParts(playlist)
		
		self.progressTimer = eTimer()
		self.progressTimer.callback.append(self.progressUpdate)
		self.progressTimer.start(1000)
		
		self.notifyNextEntry = notifyNextEntry
		
		if isinstance(self.playlist, list):
			self.isPlaylist = True
			self.current = 0
			firstPath = self.playlist[0][0]
			firstName = self.playlist[0][1]
			if firstPath.endswith(".ts"):
				type = 1
			elif firstPath.endswith(".m2ts"):
				type = 3
			else:
				type = 4097
			ref = eServiceReference(type, 0, firstPath)
			
			self.currentPlayingFile = firstPath
			ref.setName(firstName)
			self.playing = True
			MoviePlayer.__init__(self, session, ref)
		else:
			self.isPlaylist = False
			self.playing = True
			self.currentPlayingFile = self.playlist
			MoviePlayer.__init__(self, session, self.playlist)
		
		self.skinName = "MoviePlayer"
开发者ID:OpenMipsel,项目名称:project-valerie,代码行数:37,代码来源:DMC_Player.py

示例3: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service, cutlistat):
		
		self.service = service
		#self.backup = []
		self.cutlistat = cutlistat
		self.cut_list = []
		
		Cutlist.__init__(self)
		MoviePlayer.__init__(self, session, service)
		self.skinName = "MoviePlayer"
		
		self["custom_actions"] = HelpableActionMap(self, "CutlistPlayerActions",
		{
			"left":					(self.left,								_("Move Cutlist to the left")),
			"right":				(self.right,							_("Move Cutlist to the right")),
			"ok":						(self.switch,							_("Switch between Marker and Cut-In/Out")),
			"exit":					(self.cancel,							_("Exit without saving")),
			#"up":					(self["list"].pageUp,			_("Page up")),
			#"down":				(self["list"].pageDown,		_("Page up")),
			#"red":					(self.ok,									_("Download Single Cutlist")),
			"green":				(self.save, 							_("Save new cutlist")),
			#"yellow":			(self.bestdownload,				_("Page up")),
			#"blue":				(self.remove,							_("Remove Marker")),
		}, -3) 
		
		self["Service"] = CutlistService(session.nav, self)
开发者ID:betonme,项目名称:e2openplugin-CutlistDownloader,代码行数:28,代码来源:CutlistPlayer.py

示例4: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
    def __init__(self, session,openmovie,opensubtitle, rootID, LastPlayedService, URLlinkName = '', movieTitle='', LastPosition = 0):
        self.session = session
        #if '://' not in uri: uri = 'file://' + uri
        fileRef = eServiceReference(int(rootID),0,openmovie)
        fileRef.setName (movieTitle)
        
        self.Ask_on_movie_stop = False
        #try:
        if config.usage.on_movie_stop.value == "ask":
            self.Ask_on_movie_stop = True
            config.usage.on_movie_stop.value = "quit"
            config.usage.on_movie_stop.save()
        #except:
        #    pass

        self.Ask_on_movie_eof = False
        try:
            if config.usage.on_movie_eof.value == "ask":
                self.Ask_on_movie_eof = True
                config.usage.on_movie_eof.value = "quit"
                config.usage.on_movie_eof.save()
        except:
            pass
            
        systemMoviePlayer.__init__(self, self.session, fileRef)
        self.skinName = "MoviePlayer"
        systemMoviePlayer.skinName = "MoviePlayer"
        
        if self.Ask_on_movie_stop == True:
            config.usage.on_movie_stop.value = "ask"
            config.usage.on_movie_stop.save()
        if self.Ask_on_movie_eof == True:
            config.usage.on_movie_eof.value = "ask"
            config.usage.on_movie_eof.save()
开发者ID:serge61,项目名称:eePlugins,代码行数:36,代码来源:PlayWithSystem.py

示例5: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
 def __init__(self, session, service):
     CutListSupport.__init__(self, service)
     MoviePlayer.__init__(self, session, service)
     MoviePreview.__init__(self, session)
     SelectionEventInfo.__init__(self)
     self.skinName = ["MoviePlayerExtended", "MoviePlayer"]
     global PlayerInstance
     PlayerInstance = self
     self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions",
         {
             "showEventInfo": (self.openInfoView, _("Show event details")),
             "showEventInfoPlugin": (self.openServiceList, _("Open servicelist"))
         })
     if config.AdvancedMovieSelection.exitkey.value and config.AdvancedMovieSelection.exitprompt.value:
         self["closeactions"] = HelpableActionMap(self, "WizardActions",
             {
                 "back": (self.leavePlayer, _("Leave movie player"))
             })
     if config.AdvancedMovieSelection.exitkey.value and not config.AdvancedMovieSelection.exitprompt.value: 
         self["closeactions"] = HelpableActionMap(self, "WizardActions",
             {
                 "back": (self.close, _("Leave movie player"))
             })
     if config.AdvancedMovieSelection.use_original_movieplayer_summary.value == True: 
         self.__event_tracker = ServiceEventTracker(screen=self, eventmap=
             {
                     iPlayableService.evUpdatedInfo: self.__updateInfo
             })
     self.firstime = True
     self.onExecBegin.append(self.__onExecBegin)
开发者ID:IPMAN-online,项目名称:enigma2-plugins,代码行数:32,代码来源:MoviePlayer.py

示例6: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
 def __init__(self, session, service, backend, start=None):
     MoviePlayer.__init__(self, session, service)
     self.backend = backend
     backend.window=self
     session.nav.getCurrentService().streamed().setBufferSize(config.plugins.airplayer.bufferSize.value)
     self.AutoPlay = True
     self.start=start;
     start_new_thread(self.seekWatcher,(self,))
开发者ID:ABOJASSIM,项目名称:airplayer,代码行数:10,代码来源:e2_media_backend.py

示例7: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service, cur, playnext):
		MoviePlayer.__init__(self, session, service)
		self.skinName = ['BlurayPlayer', 'MoviePlayer']
		self.servicelist = InfoBar.instance and InfoBar.instance.servicelist
		self.cur = cur
		self.playnext = playnext
		self.chapters = []
		self.onLayoutFinish.append(self.LayoutFinish)
开发者ID:Taapat,项目名称:enigma2-plugin-blurayplayer,代码行数:10,代码来源:BlurayUi.py

示例8: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
    def __init__(self, session, uri, title):
        self.session = session
        self.WithoutStopClose = True
        #if '://' not in uri: uri = 'file://' + uri
        fileRef = eServiceReference(4097,0,uri)
        fileRef.setName (title)

        standardMoviePlayer.__init__(self, self.session, fileRef)
        self.skinName = "MoviePlayer"
        standardMoviePlayer.skinName = "MoviePlayer"
开发者ID:samsamsam-iptvplayer,项目名称:iptvplayer-for-e2,代码行数:12,代码来源:iptvplayer.py

示例9: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
 def __init__(self, session, service):
     CutListSupport.__init__(self, service)
     MoviePlayer.__init__(self, session, service)
     PlayerBase.__init__(self, session)
     self.skinName = ["MoviePlayerExtended", "MoviePlayer"]
     if config.AdvancedMovieSelection.exitkey.value and config.AdvancedMovieSelection.exitprompt.value:
         self["closeactions"] = HelpableActionMap(self, "WizardActions",
             {
                 "back": (self.leavePlayer, _("Leave movie player"))
             })
     if config.AdvancedMovieSelection.exitkey.value and not config.AdvancedMovieSelection.exitprompt.value: 
         self["closeactions"] = HelpableActionMap(self, "WizardActions",
             {
                 "back": (self.close, _("Leave movie player"))
             })
     if config.AdvancedMovieSelection.use_original_movieplayer_summary.value == True: 
         self.__event_tracker = ServiceEventTracker(screen=self, eventmap=
             {
                     iPlayableService.evUpdatedInfo: self.__updateInfo
             })
     self.firstime = True
     self.onExecBegin.append(self.__onExecBegin)
开发者ID:Firestorm552,项目名称:enigma2-plugins,代码行数:24,代码来源:MoviePlayer.py

示例10: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service, slist = None, lastservice = None):		
		self.session = session
		self.WithoutStopClose = False
		MP_parent.__init__(self, session, service, slist, lastservice)
开发者ID:Rogerthis,项目名称:oe-alliance-plugins,代码行数:6,代码来源:threeplayer.py

示例11: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service):
		MoviePlayer.__init__(self, session, service)
		self.skinName = "MoviePlayer"
开发者ID:13K-OMAR,项目名称:enigma2-plugins-sh4,代码行数:5,代码来源:plugin.py

示例12: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service):
		self.session = session
		self.WithoutStopClose = False
		MP_parent.__init__(self, self.session, service)
开发者ID:TELE-TWIN,项目名称:oe-alliance-plugins,代码行数:6,代码来源:threeplayer.py

示例13: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service, slist = None, lastservice = None):
		MP_parent.__init__(self, session, service, slist, lastservice)
开发者ID:Firestorm552,项目名称:oe-alliance-plugins,代码行数:4,代码来源:CommonModules.py

示例14: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
    def __init__(self, session, playerData, resume=False):
        '''
        '''
        printl("", self, "S")
        
        self.session = session
                
        self.startNewServiceOnPlay = False
        
        self.resume = resume
        self.resumeStamp = int(playerData['resumeStamp']) / 1000 #plex stores seconds * 1000
        self.server = str(playerData['server'])
        self.id = str(playerData['id'])
        self.url = str(playerData['playUrl'])
        
        printl("Checking for usable gstreamer service (built-in)... ",self, "I")
  
        if self.isValidServiceId(self.ENIGMA_SERVICEGS_ID):
            printl("found usable gstreamer service (builtin) ...", self, "I")
            self.ENIGMA_SERVICE_ID = self.ENIGMA_SERVICEGS_ID
            #STOP_BEFORE_UNPAUSE = False
        else:
            printl("no usable gstreamer service (built-in) found ...", self, "I")
            #todo hier eine meldung mit dem hinweis auf systemcheck
            #session.open(MessageBox, _("Please try Systemcheck to install gstreamer!"), MessageBox.TYPE_INFO) 
                
                    
        #MoviePlayer.__init__(self, session, service)
        printl("self.ENIGMA_SERVICE_ID = " + str(self.ENIGMA_SERVICE_ID), self, "I")
        sref = eServiceReference(self.ENIGMA_SERVICE_ID, 0, self.url)
        sref.setName("DreamPlex")
        #MoviePlayer.__init__(self, session, service)
        MoviePlayer.__init__(self, session, sref)
        
        self.skinName = "DPS_PlexPlayer"
        
        self.service = sref
        self.bufferslider = Slider(0, 100)
        self["bufferslider"] = self.bufferslider
        self["bufferslider"].setValue(0)
        self["label_bitrate"] = StaticText("Bitrate: N/A")
        self["label_speed"] = StaticText("DL-Speed: N/A")
        self["label_buffer"] = StaticText("Buffer")
        self["label_update"] = StaticText("")
        self.bufferSeconds = 0
        self.bufferPercent = 0
        self.bufferSecondsLeft = 0
        self.bitrate = 0
        self.endReached = False
        self.buffersize = 1
        self.localCache = False
        self.dlactive = False
        self.url = self.service.getPath()
        self.localsize = 0

        self["actions"] = ActionMap(["InfobarInstantRecord", "MoviePlayerActions"],
        {
         "instantRecord": self.keyStartLocalCache,
         "leavePlayer": self.leavePlayer,
        }, -2)

        self.useBufferControl = config.plugins.dreamplex.useBufferControl.value

        if config.plugins.dreamplex.setBufferSize.value:
            bufferSize = int(config.plugins.dreamplex.bufferSize.value) * 1024 * 1024
            session.nav.getCurrentService().streamed().setBufferSize(bufferSize)
            
        service1 = self.session.nav.getCurrentService()
        self.seek = service1 and service1.seek()
        
        if self.seek != None:
            rLen = self.getPlayLength()
            rPos = self.getPlayPosition()
            
            
        printl("rLen: " + str(rLen), self, "I")
        printl("rPos: " + str(rPos), self, "I")

        if self.resume == True and self.resumeStamp != None and self.resumeStamp > 0.0:
            start_new_thread(self.seekWatcher,(self,))
        
        start_new_thread(self.bitRateWatcher,(self,))
        #start_new_thread(self.checkForUpdate,(self,))

        self.__event_tracker = ServiceEventTracker(screen=self, eventmap=
            {
                iPlayableService.evUser+10: self.__evAudioDecodeError,
                iPlayableService.evUser+11: self.__evVideoDecodeError,
                iPlayableService.evUser+12: self.__evPluginError,
                iPlayableService.evBuffering: self.__evUpdatedBufferInfo,
                iPlayableService.evEOF: self.__evEOF,
            })
        
        printl("", self, "C")
开发者ID:cheif,项目名称:DreamPlex,代码行数:96,代码来源:DP_Player.py

示例15: __init__

# 需要导入模块: from Screens.InfoBar import MoviePlayer [as 别名]
# 或者: from Screens.InfoBar.MoviePlayer import __init__ [as 别名]
	def __init__(self, session, service):
		MoviePlayer.__init__(self, session, service)
		self.skinName = ["ServiceAppPlayer", "MoviePlayer"]
		self.servicelist = InfoBar.instance and InfoBar.instance.servicelist
开发者ID:a4tech,项目名称:serviceapp,代码行数:6,代码来源:plugin.py


注:本文中的Screens.InfoBar.MoviePlayer.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。