@MarkHunte, I did indeed try this last code, thanks for double checking about that.
I also copied and pasted in the entire setup() code you used and gave that a whirl (even cleared my browser cache just to make sure).
To document my results, I took a quick screen vid of what my browser preview looks like when I paste in your entire setup()
code.
Click here to check out the vid.
Is this the same results you are getting?
I get the same behavior on the test file and the real version.
This vid shows the following: when autoPlay is on and I scrub to the end, instead of the flash, it resets back to the beginning of the track and the lyrics snap back along with it before the scene transition (curiously, this is actually the original behavior I was trying to fix by adding the song.seek(song.duration());
code in the onend
option).
Alas, this still seems like it’s not working as hoped on my mac.
Despite all of these wonderful efforts, due to time constraints, I’m thinking I need to look for other simpler solutions.
In this regard, I do have one other avenue that I’m considering that I know will work (although it would not be my first choice from a design perspective), which is to keyframe the lyrics fading in and out directly into the autoScroll timeline. This avoids the glitchy flash altogether because when the track resets, the lyrics are invisible.
The downside to this setup is the lyrics would not be visible at all until (and while) the song is playing. I’d have preferred to have the lyrics visible when the scene loads, partially in order to avoid the visual awkwardness of having a big void of grey on the right column where the lyrics go. As a potentially workable solution to this, I’m realizing that If I superimpose a barely visible closeup portion of the band logo inside of this grey patch I could probably make it look pretty good (and most importantly - intentional).
In trying to work with what I’ve got (and in order to go with what is working), I think this may be an acceptable 2nd choice alternative to having the lyrics on display at all times. I did some testing with it today and I think it could look pretty good. In a best case scenario, if I can find a compelling enough way to visually work this, hopefully it will come across as a cool feature to have the lyrics appear on song start and disappear on song end.
Again, I so appreciate your help (and valuable time) with this, but out of time limit constraints, I’m leaning toward considering this alternative direction as my next best option.
Again, thanks so much for your help with this.