JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<div class="form-group last">
<label class="control-label col-md-3">some video</label>
<div class="col-md-9">
<div class="" data-provides="fileinput">
<div class="" style="width: 200px; height: 150px;">
<video id="video" width="150" height="100" controls>
<source id='currentVID' src="" type="video/mp4">
</video>
</div>
<div class="fileinput-preview fileinput-exists thumbnail" id="howtovidfile" style="max-width: 200px; max-height: 150px;"> </div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new"> Select Video</span>
<span class="fileinput-exists"> Change </span>
<input type="file" id="somevideo" name="somevideo" accept="video/mp4" autoplay onchange="playlocalVID();"/> </span>
<a href="javascript:;" class="btn red fileinput-exists removepic" data-name="removeforsomevideo" data-dismiss="fileinput"> Remove </a>
</div>
</div>
</div>
</div>
JavaScript
function playlocalVID()
{
var player = document.getElementById("video");
var currentVID = document.getElementById('currentVID');
var selectedLocalVID = document.getElementById('somevideo').files[0];
currentVID.setAttribute('src', URL.createObjectURL(new Blob([selectedLocalVID])));
player.load();
player.play();
}
$(document).on("click", ".removepic", function(event)
{
$("#somevideo").val('');
var player = document.getElementById("video");
var currentVID = document.getElementById('currentVID');
// currentVID.setAttribute('src', '');
currentVID.setAttribute('src', '');
player.load();
player.play();
});