class Controller { constructor(model, view) { this.model = model; this.view = view; this.init(); } init() { // Get video code const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); this.videoToLoad = urlParams.get("v"); this.loadVideo(this.videoToLoad); } loadVideo(v) { let video = document.getElementById("video"); console.log(video) video.children[0].src = "./videos/" + v + ".webm"; video.load(); console.log("here"); } }