Removing addRandom and arrays from the multiplayer code

It should all be managePlayer.

That way with the first init you can set start to be 45, and with the second init you can set a different option such as playlist to be some videos.

That way you can easily examine the resulting behaviour of the third video that loads after the last init.
If that last video still starts at 45 seconds, that is confirmation that earlier init settings are inappropriately being maintained.

The expected behaviour is that the managePlayer defaults are being added only to the most recent init. Anything else such as what I’ve just explained, is a problem that needs to be fixed. It’s an easy fix too, but in my experience you need very easy ways to observe and experience the problem, which what I’m directing you to achieve.

1 Like