Answers for "how to create preview video with jqeury"

1

how to create preview video with jqeury

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>

<video width="400" controls>
  <source src="mov_bbb.mp4" id="video_here">
    Your browser does not support HTML5 video.
</video>

<input type="file" name="file[]" class="file_multi_video" accept="video/*">
  
------------------------------------------------------------------------------

$(document).on("change", ".file_multi_video", function(evt) {
  var $source = $('#video_here');
  $source[0].src = URL.createObjectURL(this.files[0]);
  $source.parent()[0].load();
});
Posted by: Guest on October-08-2021

Code answers related to "how to create preview video with jqeury"

Code answers related to "Javascript"

Browse Popular Code Answers by Language