reduce volume of preview video

This commit is contained in:
Sam Lavigne 2023-08-25 18:32:14 -04:00
parent d692498e4e
commit 5714ace735
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@
let log = "";
let logbox;
let commandRef;
let vidPlayerRef;
function render() {
transcode();
@ -78,6 +79,7 @@
}
onMount(async () => {
vidPlayerRef.volume = 0.5;
loadFFmpeg();
});
</script>
@ -130,7 +132,7 @@
{#if rendering}
<div class="rendering-video"><span>Rendering...</span></div>
{/if}
<video controls src={videoValue} />
<video bind:this={vidPlayerRef} controls src={videoValue} />
</div>
<div style="text-align: right;padding-top:5px;">
<button on:click={render} disabled={!ffmpegLoaded || rendering}>