Video height issue when set src from local storage

Hi,

When you set video src from local storage, then please don’t load again that video tag. see below example for reference.

$('#my-video').html('');
var srcPath = cordova.file.documentsDirectory + FileName;
$('#my-video').html('<source src='+srcPath+' type="video/mp4"></source>' );
$('#my-video').load();

so you need to remove last line, then your code would be look like below code

$('#my-video').html('');
var srcPath = cordova.file.documentsDirectory + FileName;
$('#my-video').html('<source src='+srcPath+' type="video/mp4"></source>' );

It will solve your issue.

You may also like

Leave a Reply