added autoplay
This commit is contained in:
parent
4dfa1f3345
commit
7733963f11
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
break;
|
break;
|
||||||
case 'video/mp4':
|
case 'video/mp4':
|
||||||
const base64video = 'data:' + data.type + ';base64,' + data.buffer;
|
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;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
break;
|
break;
|
||||||
case 'video/mp4':
|
case 'video/mp4':
|
||||||
const base64video = 'data:' + data.type + ';base64,' + data.buffer;
|
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;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue