Changeset 16119
- Timestamp:
- May 28, 2012, 8:05:40 PM (14 years ago)
- Location:
- ipk/source.sh4/swapplayers_mediacenter_1.0/var/swap/extensions/MediaCenter
- Files:
-
- 3 edited
-
MC_FileListCover.py (modified) (1 diff)
-
MC_PictureViewer.py (modified) (3 diffs)
-
MC_VideoPlayer.py (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapplayers_mediacenter_1.0/var/swap/extensions/MediaCenter/MC_FileListCover.py
r16112 r16119 36 36 from Components.Console import Console 37 37 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \ 38 InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarSecondInfobar,\39 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection,\38 InfoBarShowHide, InfoBarServiceErrorPopupSupport, \ 39 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \ 40 40 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin 41 41 import os -
ipk/source.sh4/swapplayers_mediacenter_1.0/var/swap/extensions/MediaCenter/MC_PictureViewer.py
r16112 r16119 4 4 from Screens.ServiceInfo import ServiceInfoList, ServiceInfoListEntry 5 5 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \ 6 InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarSecondInfobar,\7 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection,\6 InfoBarShowHide, InfoBarServiceErrorPopupSupport, \ 7 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \ 8 8 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin 9 9 10 from Components.AVSwitch import AVSwitch 10 11 from Components.ActionMap import ActionMap, NumberActionMap, HelpableActionMap … … 38 39 from Plugins.Extensions.Aafpanel.plugin import command 39 40 from __init__ import _ 41 42 print "hallllllllllllllllllllllllllllllllllllllllllllllllo" 43 checkpli = False 44 if os.path.isfile("/etc/.enigma2-pli") is True: 45 checkpli = True 46 47 try: 48 from Screens.InfoBarGenerics import InfoBarSecondInfobar, InfoBarResolutionSelection 49 except: 50 pass 40 51 41 52 lastpath = "/" … … 1425 1436 self.close() 1426 1437 1427 class MC_PicView(Screen, InfoBarAspectSelection, InfoBarResolutionSelection): 1438 1439 if checkpli is True: 1440 input = Screen, InfoBarAspectSelection 1441 else: 1442 input = Screen, InfoBarAspectSelection, InfoBarResolutionSelection 1443 1444 class MC_PicView(input): 1428 1445 def __init__(self, session, filelist, pindex, path, startslide): 1429 1446 self.debug = command('cat /var/etc/autostart/start-config | grep debug | cut -d = -f2') -
ipk/source.sh4/swapplayers_mediacenter_1.0/var/swap/extensions/MediaCenter/MC_VideoPlayer.py
r16112 r16119 24 24 from Screens.HelpMenu import HelpableScreen 25 25 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \ 26 InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarSecondInfobar,\27 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection,\26 InfoBarShowHide, InfoBarServiceErrorPopupSupport, \ 27 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \ 28 28 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin 29 29 30 from Screens.Screen import Screen 30 31 from Screens.ServiceInfo import ServiceInfoList, ServiceInfoListEntry … … 46 47 47 48 from Components.Harddisk import harddiskmanager 49 50 checkpli = False 51 if os.path.isfile("/etc/.enigma2-pli") is True: 52 checkpli = True 53 54 try: 55 from Screens.InfoBarGenerics import InfoBarSecondInfobar, InfoBarResolutionSelection 56 except: 57 pass 48 58 49 59 T_INDEX = 0 … … 2755 2765 self.session.open(NetworkAdapterSelection) 2756 2766 2757 class MoviePlayerObi(InfoBarShowHide, \ 2758 InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, InfoBarAspectSelection, InfoBarSecondInfobar, 2759 InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, InfoBarResolutionSelection, 2760 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin, 2761 InfoBarServiceErrorPopupSupport): 2767 if checkpli is True: 2768 input = (InfoBarShowHide, InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, InfoBarAspectSelection, InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin, InfoBarServiceErrorPopupSupport) 2769 else: 2770 input = (InfoBarShowHide, InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, InfoBarAspectSelection, InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin, InfoBarServiceErrorPopupSupport, InfoBarResolutionSelection, InfoBarSecondInfobar) 2771 2772 class MoviePlayerObi(input): 2762 2773 ENABLE_RESUME_SUPPORT = True 2763 2774 ALLOW_SUSPEND = True 2764 2775 2765 2776 def __init__(self, session, service, showFileInfo, playlist): 2766 2777 Screen.__init__(self, session) … … 2768 2779 InfoBarAspectSelection.__init__(self) 2769 2780 InfoBarAudioSelection.__init__(self) 2770 InfoBarSecondInfobar.__init__(self) 2781 if checkpli is True: 2782 InfoBarSecondInfobar.__init__(self) 2783 2771 2784 InfoBarSeek.__init__(self, actionmap = "MediaCenterSeekActions") 2772 2785 self.debug = command('cat /var/etc/autostart/start-config | grep debug | cut -d = -f2') 2773 2786 2774 2787 config.plugins.mc_playing.Enabled = ConfigYesNo(default=True) 2775 2788 2776 2789 self["actions"] = HelpableActionMap(self, "MoviePlayerActions", 2777 2790 { 2778 2791 "leavePlayer": (self.leavePlayer, _("leave movie player...")) 2779 2792 }) 2780 2793 2781 2794 self["MediaPlayerActions"] = HelpableActionMap(self, "MediaPlayerActions", 2782 2795 { … … 2798 2811 "ok": (self.change_ratio, "Change Ratio old"), 2799 2812 }, -2) 2800 2813 2801 2814 for x in HelpableScreen, InfoBarShowHide, \ 2802 2815 InfoBarSeek, \ … … 2810 2823 self.returning = False 2811 2824 self.playlist = playlist 2812 2825 2813 2826 def showPlaylist(self): 2814 2827 if self.debug != "off": 2815 2828 print "[MC_VideoPlayer] showPlaylist playlist leng (%s)" % (len(self.playlist)) 2816 2829 2817 2830 print "[MC_VideoPlayer] showPlaylist playlist leng (%s)" % (len(self.playlist)) 2818 2831 2819 2832 if len(self.playlist) > 1: 2820 2833 if len(self.playlist.getServiceRefList()) and len(self.playlist) > 1 and self.seekstate[3] == '>': … … 2845 2858 else: 2846 2859 self.setSeekState(self.SEEK_STATE_PLAY) 2847 2860 2848 2861 if self.debug != "off": 2849 2862 print "[MC_VideoPlayer] showPlaylist skipped singel play" 2850 2851 2863 2864 2852 2865 def nextMarkOrEntry(self): 2853 2866 if self.debug != "off": … … 2865 2878 if self.debug != "off": 2866 2879 print "[MC_VideoPlayer] nextMarkOrEntry skipped singel play" 2867 2880 2868 2881 def previousMarkOrEntry(self): 2869 2882 if self.debug != "off": … … 2881 2894 if self.debug != "off": 2882 2895 print "[MC_VideoPlayer] previousMarkOrEntry skipped singel play" 2883 2896 2884 2897 def leavePlayer(self): 2885 2898 self.is_closing = True … … 2901 2914 config.av.threedmode.save() 2902 2915 self.session.nav.stopService() 2903 2916 2904 2917 if self.playlist != []: 2905 2918 self.playlist.clear() 2906 2919 2907 2920 evfd.getInstance().vfd_write_string("MEDIACENTER") 2908 2921 os.system("vfdctl -play") … … 2911 2924 elif answer == "restart": 2912 2925 self.doSeek(0) 2913 2926 2914 2927 def doEofInternal(self, playing): 2915 2928 if self.debug != "off": … … 2919 2932 print "[MC_VideoPlayer] set autoSleep %s min" % (config.plugins.mc_vp_autoSleep.delay.getValue()) 2920 2933 self.session.nav.SleepTimer.setSleepTime(config.plugins.mc_vp_autoSleep.delay.getValue()) 2921 # else: ### FIX ME ! Dimmer.Timer gives a GS here (not an attribute) !#######2922 # self.DimmerTimer.start(config.plugins.mc_all.dimmer_delay.getValue() * 1000, True)2923 2934 # else: ### FIX ME ! Dimmer.Timer gives a GS here (not an attribute) !####### 2935 # self.DimmerTimer.start(config.plugins.mc_all.dimmer_delay.getValue() * 1000, True) 2936 2924 2937 print "len(self.playlist)", len(self.playlist) 2925 2938 2926 2939 if ( len(self.playlist) > 0 ): 2927 2940 print "[MC_VideoPlayer] stop playlist" … … 2931 2944 print "[MC_VideoPlayer] stop autoSleep %s min" % (config.plugins.mc_vp_autoSleep.delay.getValue()) 2932 2945 self.session.nav.SleepTimer.clear() 2933 2946 2934 2947 self.session.nav.playService(None) 2935 2948 2936 2949 self.is_closing = True 2937 2950 evfd.getInstance().vfd_write_string("MEDIACENTER") … … 2939 2952 2940 2953 self.close(1) 2941 2954 2942 2955 def subtitleSelection(self): 2943 2956 if self.debug != "off": … … 2945 2958 from Screens.AudioSelection import SubtitleSelection 2946 2959 self.session.open(SubtitleSelection, self) 2947 2960 2948 2961 def audioSelection(self): 2949 2962 if self.debug != "off": … … 2951 2964 from Screens.AudioSelection import AudioSelection 2952 2965 self.session.openWithCallback(self.audioSelected, AudioSelection, infobar=self) 2953 2966 2954 2967 def videoSelection(self): 2955 2968 if self.debug != "off": 2956 2969 print "[MC_VideoPlayer] start videoSelection" 2957 # from Screens.InfoBarGenerics import InfoBarAudioSelection2958 # from Screens.AudioSelection import AudioSelection2959 2960 2961 # self.session.open(InfoBarAudioSelection.aspectSelection)2962 2963 # from Screens.AudioSelection import AudioSelection2964 # self.session.openWithCallback(self.aspectSelection, AudioSelection)2970 # from Screens.InfoBarGenerics import InfoBarAudioSelection 2971 # from Screens.AudioSelection import AudioSelection 2972 2973 2974 # self.session.open(InfoBarAudioSelection.aspectSelection) 2975 2976 # from Screens.AudioSelection import AudioSelection 2977 # self.session.openWithCallback(self.aspectSelection, AudioSelection) 2965 2978 2966 2979 from Screens.InfoBarGenerics import InfoBarAudioSelection 2967 # self.aspectSelection = aspectSelection2980 # self.aspectSelection = aspectSelection 2968 2981 self.session.open(self.aspectSelection) 2969 # self.session.open(aspectSelection)2970 2982 # self.session.open(aspectSelection) 2983 2971 2984 def sleepTimer(self): 2972 2985 from Screens.SleepTimerEdit import SleepTimerEdit 2973 2986 self.session.open(SleepTimerEdit) 2974 2987 2975 2988 def videoTune(self): 2976 2989 if os_path.isfile("/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/plugin.pyc") is True: … … 2980 2993 except: 2981 2994 pass 2982 2995 2983 2996 def change_ratio(self): 2984 2997 if self.debug != "off": … … 3018 3031 eAVSwitch.getInstance().setAspectRatio(2) 3019 3032 self.session.open(MC_MessageBox, 'BESTFIT', MC_MessageBox.TYPE_WARNING, timeout=2) 3033
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)