seagen
better option is to copy xstreamity code. I will put it in next release
Code
streamtypechoices = [('1', 'DVB(1)'), ('4097', 'IPTV(4097)')]
if os.path.exists("/usr/bin/gstplayer"):
streamtypechoices.append(('5001', 'GStreamer(5001)'))
if os.path.exists("/usr/bin/exteplayer3"):
streamtypechoices.append(('5002', 'ExtePlayer(5002)'))
if os.path.exists("/usr/bin/apt-get"):
streamtypechoices.append(('8193', 'GStreamer(8193)'))
self.LiveTypeCfg = NoSave(ConfigSelection(default=jglob.live_type, choices=streamtypechoices))
self.VodTypeCfg = NoSave(ConfigSelection(default=jglob.vod_type, choices=streamtypechoices))
Display More