Do you see how the video loads in this code?
It starts right away?
You click on it and it starts right away?
It’s not using autoplay in the code, it’s turned off.
autoplay: 0,
How would I implement that same exact thing with this code?
Either this one: https://jsitor.com/LH8A3zpZxC
const videoPlayer = (function makeVideoPlayer() {
"use strict";
const players = [];
let playerVars = {};
or this one: https://jsitor.com/CAB8i0kq6t
const videoPlayer = (function makeVideoPlayer() {
"use strict";
const players = [];
let playerVars = {};
let player = null;
I don’t know how to implement that same thing in the code that uses more than 1 player.