Changeset 3952 for ipk/source


Ignore:
Timestamp:
Sep 13, 2010, 4:28:40 PM (16 years ago)
Author:
civer
Message:

[IPK /Mediaplayer (flash and Swap) ]

  • fixed GS when pressing 2x "i" in MoviePlayer
  • added resolution screen on green button...
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  
    99from Screens.ChoiceBox import ChoiceBox
    1010from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \
    11         InfoBarShowHide, InfoBarServiceErrorPopupSupport, \
    12         InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \
     11        InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarAspectSelection, InfoBarSecondInfobar, \
     12        InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection, \
    1313        InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin
    1414from Screens.LocationBox import LocationBox
     
    2323from Components.AVSwitch import AVSwitch
    2424from Components.Harddisk import harddiskmanager
    25 from Components.config import config
     25from Components.config import config, ConfigSubsection, ConfigYesNo
    2626from Tools.Directories import fileExists, pathExists, resolveFilename, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE
    2727from settings import MediaPlayerSettings
    2828from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier
    2929import random
     30
     31config.plugins.mediaplayer = ConfigSubsection()
     32config.plugins.mediaplayer.Enabled = ConfigYesNo(default=False)
    3033
    3134class MyPlayList(PlayList):
     
    106109                self.oldService = self.session.nav.getCurrentlyPlayingServiceReference()
    107110                self.session.nav.stopService()
     111                config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True)
    108112
    109113                self.playlistparsers = {}
     
    269273                        hotplugNotifier.remove(self.hotplugCB)
    270274                        del self["coverArt"].picload
     275                        config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True)
    271276                        self.close()
    272277
     
    10001005
    10011006class 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,
    10041009                InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin,
    10051010                InfoBarServiceErrorPopupSupport):
     
    10101015        def __init__(self, session, service):
    10111016                Screen.__init__(self, session)
     1017                InfoBarSubtitleSupport.__init__(self)
     1018                InfoBarAspectSelection.__init__(self)
     1019                InfoBarAudioSelection.__init__(self)
     1020                InfoBarSecondInfobar.__init__(self)
    10121021               
    10131022                self["actions"] = HelpableActionMap(self, "MoviePlayerActions",
     
    10251034                self["ColorActions"] = HelpableActionMap(self, "ColorActions",
    10261035                        {
     1036                                "blue": (self.sleepTimer, _("Sleep Timer")),
    10271037                                "blue": (self.sleepTimer, _("Sleep Timer")),
    10281038                        })
  • ipk/source/swapplayers_mediaplayer_1_0/var/swap/extensions/MediaPlayer/plugin.py

    r3935 r3952  
    99from Screens.ChoiceBox import ChoiceBox
    1010from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSupport, InfoBarNotifications, \
    11         InfoBarShowHide, InfoBarServiceErrorPopupSupport, \
    12         InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, \
     11        InfoBarShowHide, InfoBarServiceErrorPopupSupport, InfoBarAspectSelection, InfoBarSecondInfobar, \
     12        InfoBarPVRState, InfoBarSimpleEventView, InfoBarServiceNotifications, InfoBarResolutionSelection, \
    1313        InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin
    1414from Screens.LocationBox import LocationBox
     
    2323from Components.AVSwitch import AVSwitch
    2424from Components.Harddisk import harddiskmanager
    25 from Components.config import config
     25from Components.config import config, ConfigSubsection, ConfigYesNo
    2626from Tools.Directories import fileExists, pathExists, resolveFilename, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE
    2727from settings import MediaPlayerSettings
    2828from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier
    2929import random
     30
     31config.plugins.mediaplayer = ConfigSubsection()
     32config.plugins.mediaplayer.Enabled = ConfigYesNo(default=False)
    3033
    3134class MyPlayList(PlayList):
     
    106109                self.oldService = self.session.nav.getCurrentlyPlayingServiceReference()
    107110                self.session.nav.stopService()
     111                config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True)
    108112
    109113                self.playlistparsers = {}
     
    269273                        hotplugNotifier.remove(self.hotplugCB)
    270274                        del self["coverArt"].picload
     275                        config.plugins.mediaplayer.Enabled = ConfigYesNo(default=True)
    271276                        self.close()
    272277
     
    10001005
    10011006class 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,
    10041009                InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, Screen, InfoBarTeletextPlugin,
    10051010                InfoBarServiceErrorPopupSupport):
     
    10101015        def __init__(self, session, service):
    10111016                Screen.__init__(self, session)
     1017                InfoBarSubtitleSupport.__init__(self)
     1018                InfoBarAspectSelection.__init__(self)
     1019                InfoBarAudioSelection.__init__(self)
     1020                InfoBarSecondInfobar.__init__(self)
    10121021               
    10131022                self["actions"] = HelpableActionMap(self, "MoviePlayerActions",
     
    10251034                self["ColorActions"] = HelpableActionMap(self, "ColorActions",
    10261035                        {
     1036                                "blue": (self.sleepTimer, _("Sleep Timer")),
    10271037                                "blue": (self.sleepTimer, _("Sleep Timer")),
    10281038                        })
Note: See TracChangeset for help on using the changeset viewer.