如何在 Android 上通过 lirc 控制 mplayer/vlc(在 Debian 下)

如何在 Android 上通过 lirc 控制 mplayer/vlc(在 Debian 下)

我安装了lirc,并用 启动它systemctl lirc start。编辑了/etc/lirc/hardware.conf如下,并添加了~/.lircrc~/.lirc/mplayer如下。安装了几个 Android 的 LIRC 客户端,例如 irdroid、AMOTE Free、LIRC-Client,但它们都无法发送远程信号(可能是我不知道如何使用它们)。

我尝试根据配置http://www.lirc.org/html/configure,但该网站对我来说似乎太令人生畏了。我想要一个简单的配置,它不一定依赖于 Wifi 等,而只使用 Linux 内核内置的 LIRC。

# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE=""
MODULES="lirc_dev lirc_serial"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""




# ~/.lircrc
include "~/.lirc/mplayer"
include "~/.lirc/vlc"



# ~/.lirc/mplayer
begin
     button = VOLUME_PLUS
     prog = mplayer
     config = volume 1
     repeat = 1
end

begin
    button = VOLUME_MINUS
    prog = mplayer
    config = volume -1
    repeat = 1
end

begin
    button = CD_PLAY
    prog = mplayer
    config = pause
end

begin
    button = CD_STOP
    prog = mplayer
    config = seek 0 1\npause
end 

相关内容