Beispiel #1
0
 def set_encodings_menu(*_args):
     from xpra.codecs.codec_constants import PREFERED_ENCODING_ORDER
     server_encodings = list(self.client.server_encodings)
     encodings = [x for x in PREFERED_ENCODING_ORDER if x in self.client.get_encodings()]
     encodings.insert(0, "auto")
     server_encodings.insert(0, "auto")
     populate_encodingsmenu(encodings_menu, self.get_current_encoding, self.set_current_encoding, encodings, server_encodings)
Beispiel #2
0
 def set_encodings_menu(*args):
     from xpra.codecs.loader import PREFERED_ENCODING_ORDER
     encodings = [
         x for x in PREFERED_ENCODING_ORDER
         if x in self.client.get_encodings()
     ]
     populate_encodingsmenu(encodings_menu, self.get_current_encoding,
                            self.set_current_encoding, encodings,
                            self.client.server_encodings)
Beispiel #3
0
 def set_encodings_menu(*args):
     from xpra.codecs.loader import PREFERED_ENCODING_ORDER
     server_encodings = list(self.client.server_encodings)
     encodings = [
         x for x in PREFERED_ENCODING_ORDER
         if x in self.client.get_encodings()
     ]
     if self.client.server_auto_video_encoding:
         encodings.insert(0, "auto")
         server_encodings.insert(0, "auto")
     populate_encodingsmenu(encodings_menu,
                            self.get_current_encoding,
                            self.set_current_encoding, encodings,
                            server_encodings)
Beispiel #4
0
 def set_encodings_menu(*args):
     from xpra.codecs.loader import PREFERED_ENCODING_ORDER
     encodings = [x for x in PREFERED_ENCODING_ORDER if x in self.client.get_encodings()]
     populate_encodingsmenu(encodings_menu, self.get_current_encoding, self.set_current_encoding, encodings, self.client.server_encodings)