Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

JukeBoxTrack Hangs for Players

1458570905

Edited 1458571086
Matt
Pro
I am using the following code to play a JukeBoxTrack based on the name of the track provided.  When I am in the game as a GM , the calls to this function work as intended - the tracks play their duration and stop and drop off the "Now Playing" list.  Multiple calls of the same JukeBoxTrack play as expected. However, when I am in the game as a player , the tracks will play only once.  When viewing the jukebox as a player, the track is listed in the "Now Playing" list and never drops off, even long after the track has finished playing.  If, as a player, I make a call to a different track, the new track will play once, become stuck in the "Now Playing" list, and restart all previous tracks that never dropped off the "Now Playing" list. This also occurs for other players, not just a GM logged in as a player..  It was tested with and without a GM present in the game.    var PlayEffect = function(sfxname) { if (!sfxname || sfxname ==='') { return; } var track = findObjs({ _type: 'jukeboxtrack', title: sfxname, })[0]; if (track) { track.set({ 'playing': true, 'softstop': false, 'loop': false, }); } };
1458597490
Phil B.
Forum Champion
Sheet Author
I looked into this and, with the code you linked, was able to recreate the issue. This is definitely a bug, and I have gone ahead and logged it. We will attempt to fix it when we get a chance. I'm sorry this is causing you issues, but thank you for pointing this out for us.