Open creatv21 opened 7 years ago
Hope I'm not too late… For me it works like so:
<row>
<button icon="mic" onTap="audio" />
<button icon="select" onTap="subs" />
</row>
maybe onTap
is case sensitive, I don't know.
And for remote.lua:
--@help Switch audio
actions.audio = function ()
keyboard.stroke("alt", "a");
end
--@help Subtitles On/Off
actions.subs = function ()
keyboard.stroke("alt", "h");
end
Although I'd recommend to do it with raw commands:
local CMD_SWITCH_AUDIO = 36799;
local CMD_SWITCH_SUBS = 36899;
and
--@help Switch audio
actions.switch_audio = function ()
actions.command(CMD_SWITCH_AUDIO);
end
--@help Switch subtitles
actions.switch_subs = function ()
actions.command(CMD_SWITCH_SUBS);
end
i added this in layout.xml file (in unified/main/ daum pot player)
and this in remote.lua file (in unified/main/ Daum pot player)
audio and subs buttons appear in android app but it doesn't work. in potplayer I use "A" for audio track cycle and "S" for subtitles cycle. any help please