I am using the same code in TSmedia player
def __evAudioDecodeError(self): currPlay = self.session.nav.getCurrentService() sTagAudioCodec = currPlay.info().getInfoString(iServiceInformation.sTagAudioCodec) print "[__evAudioDecodeError] audio-codec %s can't be decoded by hardware" % (sTagAudioCodec) try:self['programm'].setText("error:This box can't decode %s streams!") % sTagAudioCodec except:self['programm'].setText("error:This box can't decode stream!") self.show() def __evVideoDecodeError(self): currPlay = self.session.nav.getCurrentService() sTagVideoCodec = currPlay.info().getInfoString(iServiceInformation.sTagVideoCodec) print "[__evVideoDecodeError] video-codec %s can't be decoded by hardware" % (sTagVideoCodec) try:self['programm'].setText("error:This box can't decode %s streams!") % sTagVideoCodec except:self['programm'].setText("error:This box can't decode this stream !") self.show() def __evPluginError(self): currPlay = self.session.nav.getCurrentService() message = currPlay.info().getInfoString(iServiceInformation.sUser+12) print "[__evPluginError]" , message try:self['programm'].setText("error:Your box can't decode this video stream!\n%s") % message except:self['programm'].setText("error:Your box can't decode this video stream!") self.show() return
The errors more frequent with openpli 2.1 and oe1.6 images(include clone images) and rare in openpli3.0 and oe2.0 image due to more developed drivers and gstreamer
Edited by mfaraj57, 22 September 2013 - 16:46.