In one of my module, I need to browse video from input[type=\'file\'], after that I need to show selected video before starting upload.
I am using basic HTML tag to
Lets make it easy
HTML:
Your browser does not support HTML5 video.
JS:
function readVideo(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function(e) { $('.myvideo').attr('src', e.target.result); }; reader.readAsDataURL(input.files[0]); } }