app.player.setPlaylistPosAsync question

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: app.player.setPlaylistPosAsync question

Re: app.player.setPlaylistPosAsync question

by MyVikes » Wed Jul 07, 2021 5:33 pm

thx for the quick response i found my issue...it had to do with the javascript value conversion to a number and the default value setting.

there is no problem

Re: app.player.setPlaylistPosAsync question

by MiPi » Wed Jul 07, 2021 8:46 am

Which build do you use?
I tried and it seems to work ok for me. Setting 0 sets first track in both situations - when no track was set before as playing and even when other track was playing. Tested by simple script, which just call app.player.setPlaylistPosAsync(0); on button click.
How exactly do you test it?

app.player.setPlaylistPosAsync question

by MyVikes » Wed Jul 07, 2021 2:45 am

I'm trying to use

Code: Select all

app.player.setPlaylistPosAsync(newIndex)
to set the currently playing track in the playlist and it works unless i try to set the index to "0". Of course 1 sets the currently playing song to 2 in the list, 2 to 3, etc. So i would expect 0 to set the currently playing song to the first song.

Any thoughts on why this could be?

Top