Exemplo n.º 1
0
 def __init__(self, parent_win, xid=0):
     PreferencesProvider.__init__(self)
     PlayerEngine.__init__(self, parent_win, xid)
     self.proc = None
     self.m_items = {}
     self.out_watcher = None
     self.state_timeout = None
     self._setup_gui()
     self._setup_connections()
Exemplo n.º 2
0
 def __init__(self, parent_win):
     PreferencesProvider.__init__(self)
     PlayerSource.__init__(self, parent_win)
     self.host = None
     self.control = None
     self.data = None
     self.fifo = None
     self.fifo_name = None
     self.io_watcher_id = None
Exemplo n.º 3
0
    def preferences_save(self, d):
        self.preferences["path"] = self.player_path.get_text()
        self.preferences["params"] = self.player_params.get_text()

        def get_combo_item(wid):
            i = wid.get_active()
            if i < 0:
                return ""
            else:
                return wid.get_model()[i][0]

        self.preferences["audio_output"] = get_combo_item(self.player_ao)
        self.preferences["audio_codecs"] = get_combo_item(self.player_acodec)
        PreferencesProvider.preferences_save(self, d)
Exemplo n.º 4
0
    def preferences_load(self, d):
        PreferencesProvider.preferences_load(self, d)

        if not self.preferences["path"]:
            self.preferences["path"] = catota.utils.which("mplayer")

        self.player_path.set_text(self.preferences["path"])
        self.player_params.set_text(self.preferences["params"])

        def set_combo_item(wid, item):
            for i, row in enumerate(wid.get_model()):
                if row[0] == item:
                    wid.set_active(i)
                    break

        set_combo_item(self.player_ao, self.preferences["audio_output"])
        set_combo_item(self.player_acodec, self.preferences["audio_codecs"])
Exemplo n.º 5
0
 def __init__(self, parent_win):
     PreferencesProvider.__init__(self)
     PlayerSource.__init__(self, parent_win)
Exemplo n.º 6
0
    def preferences_save(self, d):
        self.preferences["address"] = self.address.get_text()
        self.preferences["port"] = self.port.get_value()

        PreferencesProvider.preferences_save(self, d)
Exemplo n.º 7
0
    def preferences_load(self, d):
        PreferencesProvider.preferences_load(self, d)

        self.address.set_text(self.preferences["address"])
        self.port.set_value(self.preferences["port"])
Exemplo n.º 8
0
 def __init__(self, parent_win):
     PreferencesProvider.__init__(self)
     PlayerSource.__init__(self, parent_win)