Exemplo n.º 1
0
 def __init__(self, parent):
     """
     Constructor
     """
     MediaPlayer.__init__(self, parent, u'vlc')
     self.original_name = u'VLC'
     self.display_name = u'&VLC'
     self.parent = parent
     self.canFolder = True
     self.audio_extensions_list = AUDIO_EXT
     self.video_extensions_list = VIDEO_EXT
Exemplo n.º 2
0
 def __init__(self, parent):
     """
     Constructor
     """
     MediaPlayer.__init__(self, parent, u'phonon')
     self.original_name = u'Phonon'
     self.display_name = u'&Phonon'
     self.parent = parent
     self.additional_extensions = ADDITIONAL_EXT
     mimetypes.init()
     for mimetype in Phonon.BackendCapabilities.availableMimeTypes():
         mimetype = unicode(mimetype)
         if mimetype.startswith(u'audio/'):
             self._addToList(self.audio_extensions_list, mimetype)
         elif mimetype.startswith(u'video/'):
             self._addToList(self.video_extensions_list, mimetype)