added autoplay

This commit is contained in:
bill bittner 2017-07-08 13:05:04 -07:00
parent 4dfa1f3345
commit 7733963f11
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
break;
case 'video/mp4':
const base64video = 'data:' + data.type + ';base64,' + data.buffer;
document.getElementById("asset-placeholder").innerHTML = '<video class="show-asset" controls> <source src="' + base64video + '"></video>';
document.getElementById("asset-placeholder").innerHTML = '<video class="show-asset" preload="none" autoplay controls> <source src="' + base64video + '"></video>';
break;
default: break;
}

View file

@ -25,7 +25,7 @@
break;
case 'video/mp4':
const base64video = 'data:' + data.type + ';base64,' + data.buffer;
document.getElementById("asset-placeholder").innerHTML = '<video class="show-asset-lite" controls> <source src="' + base64video + '"></video>';
document.getElementById("asset-placeholder").innerHTML = '<video class="show-asset-lite" autoplay controls> <source src="' + base64video + '"></video>';
break;
default: break;
}