Changeset 3952
- Timestamp:
- Sep 13, 2010, 4:28:40 PM (16 years ago)
- Location:
- ipk/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/players_mediaplayer_1_0/usr/lib/enigma2/python/Plugins/Extensions/MediaPlayer/plugin.py
r3935 r3952 9 9 from Screens.ChoiceBox import ChoiceBox 10 10 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \ 11 InfoBarShowHide, InfoBarServiceErrorPopupSupport, \12 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \11 InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarAspectSelection, InfoBarSecondInfobar, \ 12 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection, \ 13 13 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin 14 14 from Screens.LocationBox import LocationBox … … 23 23 from Components.AVSwitch import AVSwitch 24 24 from Components.Harddisk import harddiskmanager 25 from Components.config import config 25 from Components.config import config, ConfigSubsection, ConfigYesNo 26 26 from Tools.Directories import fileExists, pathExists, resolveFilename, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE 27 27 from settings import MediaPlayerSettings 28 28 from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier 29 29 import random 30 31 config.plugins.mediaplayer = ConfigSubsection() 32 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=False) 30 33 31 34 class MyPlayList(PlayList): … … 106 109 self.oldService = self.session.nav.getCurrentlyPlayingServiceReference() 107 110 self.session.nav.stopService() 111 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True) 108 112 109 113 self.playlistparsers = {} … … 269 273 hotplugNotifier.remove(self.hotplugCB) 270 274 del self["coverArt"].picload 275 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True) 271 276 self.close() 272 277 … … 1000 1005 1001 1006 class MoviePlayer(InfoBarShowHide, \ 1002 InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, 1003 InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, 1007 InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, InfoBarAspectSelection, InfoBarSecondInfobar, 1008 InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, InfoBarResolutionSelection, 1004 1009 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin, 1005 1010 InfoBarServiceErrorPopupSupport): … … 1010 1015 def __init__(self, session, service): 1011 1016 Screen.__init__(self, session) 1017 InfoBarSubtitleSupport.__init__(self) 1018 InfoBarAspectSelection.__init__(self) 1019 InfoBarAudioSelection.__init__(self) 1020 InfoBarSecondInfobar.__init__(self) 1012 1021 1013 1022 self["actions"] = HelpableActionMap(self, "MoviePlayerActions", … … 1025 1034 self["ColorActions"] = HelpableActionMap(self, "ColorActions", 1026 1035 { 1036 "blue": (self.sleepTimer, _("Sleep Timer")), 1027 1037 "blue": (self.sleepTimer, _("Sleep Timer")), 1028 1038 }) -
ipk/source/swapplayers_mediaplayer_1_0/var/swap/extensions/MediaPlayer/plugin.py
r3935 r3952 9 9 from Screens.ChoiceBox import ChoiceBox 10 10 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \ 11 InfoBarShowHide, InfoBarServiceErrorPopupSupport, \12 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \11 InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarAspectSelection, InfoBarSecondInfobar, \ 12 InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection, \ 13 13 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin 14 14 from Screens.LocationBox import LocationBox … … 23 23 from Components.AVSwitch import AVSwitch 24 24 from Components.Harddisk import harddiskmanager 25 from Components.config import config 25 from Components.config import config, ConfigSubsection, ConfigYesNo 26 26 from Tools.Directories import fileExists, pathExists, resolveFilename, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE 27 27 from settings import MediaPlayerSettings 28 28 from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier 29 29 import random 30 31 config.plugins.mediaplayer = ConfigSubsection() 32 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=False) 30 33 31 34 class MyPlayList(PlayList): … … 106 109 self.oldService = self.session.nav.getCurrentlyPlayingServiceReference() 107 110 self.session.nav.stopService() 111 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True) 108 112 109 113 self.playlistparsers = {} … … 269 273 hotplugNotifier.remove(self.hotplugCB) 270 274 del self["coverArt"].picload 275 config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True) 271 276 self.close() 272 277 … … 1000 1005 1001 1006 class MoviePlayer(InfoBarShowHide, \ 1002 InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, 1003 InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, 1007 InfoBarSeek, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, InfoBarAspectSelection, InfoBarSecondInfobar, 1008 InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, InfoBarResolutionSelection, 1004 1009 InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin, 1005 1010 InfoBarServiceErrorPopupSupport): … … 1010 1015 def __init__(self, session, service): 1011 1016 Screen.__init__(self, session) 1017 InfoBarSubtitleSupport.__init__(self) 1018 InfoBarAspectSelection.__init__(self) 1019 InfoBarAudioSelection.__init__(self) 1020 InfoBarSecondInfobar.__init__(self) 1012 1021 1013 1022 self["actions"] = HelpableActionMap(self, "MoviePlayerActions", … … 1025 1034 self["ColorActions"] = HelpableActionMap(self, "ColorActions", 1026 1035 { 1036 "blue": (self.sleepTimer, _("Sleep Timer")), 1027 1037 "blue": (self.sleepTimer, _("Sleep Timer")), 1028 1038 })
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)