When dynamically changing the video , i am getting the following error under server console
(index):71 Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
I am using the following code when change occurred
function playlocalVID()
{
var player = document.getElementById("video");
var currentVID = document.getElementById('currentVID');
var selectedLocalVID = document.getElementById('howtovideo').files[0];
currentVID.setAttribute('src', URL.createObjectURL(new Blob([selectedLocalVID])));
player.load();
player.play();
}
But when changed the video 3 - 4 times or clicked on Remove Button
i am getting the issue
Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
This is my fiddle
https://jsfiddle.net/q3hhk17e/36/
Could you please let me know how to resolve this issue .