Skip to content

Commit

Permalink
slidertest: take track position into account
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Sep 5, 2023
1 parent fb2c096 commit 116079b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/slidertest/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ let trackPosition = 0;
let trackDur = 30;
let messageHandler = (type, msg)=>{
print(type, msg);
if (type='music'){
trackPosition = 1; // should depend on msg.position or similar.
if (type=='music'){
trackPosition = msg.position+1; // +1 to account for latency.
trackDur = msg.dur;
print('trackPosition: ' + trackPosition)
if (sliderObject2) {
Expand Down

0 comments on commit 116079b

Please sign in to comment.