android: handle android STREAM_MUSIC volume level forwarding

emit android STREAM_MUSIC volume when it arrives.
master
thyttan 2025-03-17 01:55:12 +01:00
parent f7c1b1b3aa
commit 6243d72ea0
1 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,10 @@ exports.gbHandler = (event) => {
"musicinfo" : function() {
require("messages").pushMessage(Object.assign(event, {t:"modify",id:"music",title:"Music"}));
},
// {t:"audio", v:(percentage of max volume for android STREAM_MUSIC)}
"audio" : function() {
Bangle.emit("musicVolume", event.v);
},
// {"t":"call","cmd":"incoming/end/start/outgoing","name":"Bob","number":"12421312"})
"call" : function() {
Object.assign(event, {