def control(self,char):
val = OMXDriver.KEY_MAP[char]
#logger.info('>control received and sent to omxplayer ' + str(self.pid))
if self.is_running():
try:
self.__iface_player.Action(dbus.Int32(val))
except dbus.exceptions.DBusException as ex:
#logger.info('Failed to send control - dbus exception: {}'.format(ex.get_dbus_message()))
return
else:
logger.info('Failed to send control - process not running')
return
# USE ONLY at end and after load
# return succces of the operation, several tries if pause did not work and no error reported.
评论列表
文章目录