I can’t thank you enough for you help with all of this!
The way you used persistent symbols in your example is awesome.
The blessing and the curse for me at this point is that the code I was working on originally is now working absolutely perfectly (albeit less elegantly than I’d probably like).
Here is my most recent version :).
I now have all of the various audio and nav buttons working exactly the way they should. Tricky thing is, it took a sizable amount of tweaking to get the exact behavior I needed from all of the various controls, and I find myself taking a big gulp at the notion of getting a totally new setup up and running (despite how awesome of a setup it is).
The other huge factor is that I’m on a relatively tight time frame with this project and I’m afraid incorporating restructured code from the ground up is going to set me back time-wise farther than I can afford.
As a result, I’m inclined to keep my current code as-is and finish it off with the last functionality I need for the client. So, now I’m faced with the task of pressing on and building out the code in its current working state (for better or worse).
I hope you don’t feel like any time has been wasted with the code examples you helped me out with. Looking at your examples was hugely instructional and I had a number of important lightbulbs go off (so thank you again for that. I appreciate the help, and none is taken for granted).
All of that having been said, here is where I’m currently at:
Tonight I figured out how to display the duration of the
currentSong in the innerHTML of an invisible box on each scene. I’m hoping I can use this knowledge to figure out how to display the currentTime (in another box) as the song plays using the howler.js’s seek() method, as well as how to add 2 buttons to skip the audio ahead or behind by 10 or 15 seconds.
Honestly, what I feel I am going to have a sizable challenge with is how to add an audio scrubber slider (and possibly a volume slider). In that regard, if you have the time and inclination, would you have any input on how I could construct an audio scrubber and incorporate it into my current working code?
In my research I came across your excellent post on building a volume slider. Could your volume slider setup be used to control the audio position like a scrubber?
Would so appreciate any input you might have.
It’s a huge help, thx again!