Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
Ch-_c@sBddlmZddlmZmZmZmZmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZmZdd
lmZmZmZdeeeee	eefd„ƒYZdd
lmZddlmZdefd„ƒYZ defd„ƒYZ!dS(iÿÿÿÿ(tScreen(tInfoBarSeektInfoBarAudioSelectiontInfoBarNotificationstInfoBarSubtitleSupporttInfoBarShowHide(tHelpableScreen(tHelpableActionMap(tconfig(t	eAVSwitch(t	ChoiceBox(tServiceEventTracker(tiPlayableServiceteTimer(tprintDBGtprintExcteConnectCallbacktcustomMoviePlayercBs­eZdZdZdZeZeZddd„Z	d„Z
d„Zd„Zd„Z
d„Zed	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„ZRS(iiicCs¬tj||ƒd|_td|di|jtj6|jtj6ƒ|_t	|di|j
tdƒfd6|j
tdƒfd6dƒ|d	<x-tt
ttttfD]}|j|ƒq©W|jj|jƒtƒ|_t|jj|jƒ|_|jjd
ƒ||_|jjj|ƒ|dkr`|ddkr`d
|_!||_"t#|_$nd
|_!d
|_"t%|_$d
|_&d
|_'t%|_(d|_)t%|_*dS(NtMoviePlayertscreenteventmaptMoviePlayerActionssleave movie player...tleavePlayertleavePlayerOnExitiûÿÿÿtactionsièi_i
it1(+Rt__init__tskinNameRt_customMoviePlayer__evEOFRtevEOFtevSOFt!_customMoviePlayer__event_trackerRRt_RRRRRRtonClosetappendt_customMoviePlayer__onCloseR
t	mainTimerRttimeoutt
timerCallBacktmainTimer_conntstarttbugEOFworkaroundtsessiontnavtplayServicetNonetpositiontlastPositiontTruetdoSeekToLastPositiontFalsetwaitForSeekToLastPositiontstopTimeFixt	returningtaspectratiomodet	isClosing(tselfR*tserviceR/R)tx((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRs>	
	
										cCsd}d}|jjjƒ}|o-|jƒ}|dkr…|jƒ}|ds_|d}n|jƒ}|ds…|d}q…n||fS(Nii(R*R+tgetCurrentServicetseekR-t	getLengthtgetPlayPosition(R8ttimetlengthR9R<tr((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pytgetPositionAs


cCs+td|ƒtj||ƒd|_dS(NsdoSeekRelative pts[%r]iÿÿÿÿ(RRtdoSeekRelativeR3(R8tpts((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRCOscCs¯y-|jƒ\}}|jrt|j|jkrttd|jƒ|j|j|ƒt|_d|_d|_dSd|j	kr­|dkr›||_	ntd|ƒdStd|||jfƒ|j	dkré|j	|krédSd|_	|j
dks|dks|j|jkr#dS||_Wntk
rHtƒdSX||j
krm||_
d|_n|jd7_|j|j
kr«|jjƒ|jtƒndS(Ns&timerCallBack doSeekToLastPosition[%r]iiÿÿÿÿs.________waitForSeekToLastPosition position[%r]s>________timerCallBack position [%r], length[%r], seekstate[%r]i(RBR1t	seekstatetSEEK_STATE_PLAYRR/RCR2R4R3R)t	ExceptionRR.R$tstopRR0(R8R.R@((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyR&Ts>				-

	
cCs»td|jƒ|jdkr@tjƒjdƒd|_dS|jdkr[d|_n\|jdkr‰tjƒjdƒd|_n.|jdkr·tjƒjdƒd|_ndS(	NsAspect Ratio [%r]Rit2t3it4i(RR6R	tgetInstancetsetAspectRatio(R8((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pytaspectChangews	cCsstdƒ|jjjƒ}|dkr6tdƒtS|jƒ}|dkr[tdƒntdƒ|jƒtS(NtpauseBeforeClosesNo Service foundsnot pauseable.tpausable(RR*R+R;R-R2tpauseR0(R8R9t	pauseable((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRO†s




cCsZtd|j|fƒt|jkrV|jƒ|rF|jdƒqV|jdƒndS(Ns8customMoviePlayer.leavePlayer isClosing[%r], endFile[%r]tkey_stop(RR7R2ROt_doCloseR-(R8tendFile((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyR”s
cCstdƒ|jtƒdS(Ns--- eofint movieplayer ---(RRR0(R8tplaying((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyt
doEofInternals
cCs…td||jfƒy6|jƒt|_g|_g|_|jjƒWnt	k
rmt
tjƒnX|j
||jƒdS(Ns"_doClose sts[%r], lastPosition[%r](RR/thideR0R7tonShowtonHidet	hideTimerRHRGRRRTtclose(R8tsts((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRT¡s
			
cCs"tdtjƒ|jtƒdS(NsevEOF=%d(RRRRR0(R8((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyt__evEOF­scCs7tdƒ|jjƒd|_|jj|jƒdS(NscustomMoviePlayer.__onClose(RR$RHR-R'R!tremoveR#(R8((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyt	__onClose±s

	cCs-t|jkrtj|ƒn
tdƒdS(NscustomMoviePlayer.show(R2R7RtshowR(R8((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRa·scCs-t|jkrtj|ƒn
tdƒdS(NscustomMoviePlayer.doShow(R2R7RtdoShowR(R8((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRb½scOsdS(N((R8targstkwargs((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyt
openEventViewÃsN(t__name__t
__module__t
STATE_IDLEt
STATE_PLAYINGtSTATE_PAUSEDR0tENABLE_RESUME_SUPPORTt
ALLOW_SUSPENDR-RRBRCR&RNROR2RRWRTRR#RaRbRe(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRs&*			#									(R(teServiceReferencetIPTVStandardMoviePlayercBs#eZd„Zd„Zd„ZRS(cCsf||_t|_tdd|ƒ}|j|ƒtj||j|ƒd|_dt_t|_	dS(NiiR(
R*R0tWithoutStopCloseRmtsetNametstandardMoviePlayerRRR2te2iplayerEOF(R8R*turittitletfileRef((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRÍs		
		cOsE|r|ds"|jdtƒr.t|_ntj|||ŽdS(NiRV(tgetR2R0RrRqRW(R8RcRd((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRWÙs"cOs3|jrtj|||Žntj|dƒdS(Ntkey_exit(RrRqR\(R8RcRd((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyR\Þs	(RfRgRRWR\(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRnÌs		tIPTVMiniMoviePlayercBseZddd„ZRS(icCsQ||_t|_tdd|ƒ}|j|ƒtj||j|||ƒdS(Nii(R*R0RoRmRpRR(R8R*RsRtR/R)Ru((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRås
		
N(RfRgR-R(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyRxäsN("tScreens.ScreenRtScreens.InfoBarGenericsRRRRRtScreens.HelpMenuRtComponents.ActionMapRtComponents.configRtComponents.AVSwitchR	tScreens.ChoiceBoxR
tComponents.ServiceEventTrackerRtenigmaRR
t-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRtScreens.InfoBarRRqRmRnRx(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvplayer.pyt<module>s((»