|
发表于 2013-3-21 23:06:08
|
显示全部楼层
我找到了,现在已能用WLAN键正常操作。谢谢指导。。。
添加按键脚本,控制mplayer换台
DB120在终端下运行mplayer,按wlan 0-1秒为 暂停,2-5秒为下一首或换台,按住6秒以上关闭mplayer
DB120 WLAN键控制mplayer示例
/etc/config/system添加如下内容
config 'button'
option 'button' 'BTN_1'
option 'action' 'released'
option 'handler' 'echo pause > /tmp/fifofile'
option 'min' '0'
option 'max' '1'
config 'button'
option 'button' 'BTN_1'
option 'action' 'released'
option 'handler' 'echo pt_step 1 > /tmp/fifofile'
option 'min' '2'
option 'max' '5'
config 'button'
option 'button' 'BTN_1'
option 'action' 'released'
option 'handler' 'echo quit > /tmp/fifofile'
option 'min' '6'
option 'max' '10'
RG100A请修改/etc/config/system,把BTN_1改成BTN_2或BTN_3
BTN_0 RESET(DB120,RG100A均有效)
BTN_1 DB120:WLAN
BTN_2 WPS(DB120,RG100A均有效)
BTN_3 RG100A:WLAN
/usr/share/mplayer/playlist为网络电台地址或播放列表
|
|