Video working in DOM and Canvas