Skip to content

Commit

Permalink
android: pass music position forward
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Sep 5, 2023
1 parent 877b805 commit fb2c096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/android/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
Allow alarm enable/disable
0.31: Implement API for activity fetching
0.32: Set android media volume by supplying a percentage.
Forward `musicstate` position information.
2 changes: 1 addition & 1 deletion apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
// {t:"musicstate", state:"play/pause",position,shuffle,repeat}
"musicstate" : function() {
require("messages").pushMessage({t:"modify",id:"music",title:"Music",state:event.state});
require("messages").pushMessage({t:"modify",id:"music",title:"Music",state:event.state,position:event.position});
},
// {t:"musicinfo", artist,album,track,dur,c(track count),n(track num}
"musicinfo" : function() {
Expand Down

0 comments on commit fb2c096

Please sign in to comment.