I have tried a couple of things and didn't succeed. stackoverflow couldn't help me either. I have the following video:
<video class="video-js vjs-default-skin" width="1024" height="720" controls data-setup='{}' id="vidarea">
<source src="E:/Vids/test.mp4" type="video/mp4" id="vidsource"></video>
I wan't to change the video displayed when I click another video icon on my page using JS. I just couldn't do it. I've tried
const myVideo = document.getElementById('vidsource');
.
.
.
myVideo.src = 'E:/Vids/test2.mp4';