Right now, to fade between music tracks, we assume the fader is already at the volume we want to start from (0 or 100) and fade from there. For a true implementation, we should have it read the current fader level and fade from that.
Context
Because of the way we call setFader in setTimeout blocks, I had a lot of trouble trying to get the correct fader value again when we want to fade back in. Honestly, because we should only ever be calling setFader when the fader is at 100 or 0, finding a solution to this isn't imperative, and will only matter for extremely short (<.5s) video lengths.
Describe the addition
Right now, to fade between music tracks, we assume the fader is already at the volume we want to start from (0 or 100) and fade from there. For a true implementation, we should have it read the current fader level and fade from that.
Context
Because of the way we call setFader in setTimeout blocks, I had a lot of trouble trying to get the correct fader value again when we want to fade back in. Honestly, because we should only ever be calling setFader when the fader is at 100 or 0, finding a solution to this isn't imperative, and will only matter for extremely short (<.5s) video lengths.
Proposed Solution