var video = document.getElementsByTagName('video')[0]; // this is when you cannot select using id and class is not working so just use [0]
var video = document.getElementsByTagName('video')[0]; // this is when you cannot select using id and class is not working so just use [0]