old-omxdriver.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:r_e_c_u_r 作者: langolierz 项目源码 文件源码
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.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号