android: handle android STREAM_MUSIC volume level forwarding
emit android STREAM_MUSIC volume when it arrives.master
parent
f7c1b1b3aa
commit
6243d72ea0
|
|
@ -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, {
|
||||
|
|
@ -386,4 +390,4 @@ exports.overwriteGPS = () => { // if the overwrite option is set, call this on i
|
|||
setTimeout(()=>{
|
||||
if (!Bangle.isGPSOn()) require("android").gbSend({ t: "gps_power", status: false });
|
||||
},3000);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue