reduce volume of preview video
This commit is contained in:
parent
d692498e4e
commit
5714ace735
|
@ -20,6 +20,7 @@
|
||||||
let log = "";
|
let log = "";
|
||||||
let logbox;
|
let logbox;
|
||||||
let commandRef;
|
let commandRef;
|
||||||
|
let vidPlayerRef;
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
transcode();
|
transcode();
|
||||||
|
@ -78,6 +79,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
vidPlayerRef.volume = 0.5;
|
||||||
loadFFmpeg();
|
loadFFmpeg();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -130,7 +132,7 @@
|
||||||
{#if rendering}
|
{#if rendering}
|
||||||
<div class="rendering-video"><span>Rendering...</span></div>
|
<div class="rendering-video"><span>Rendering...</span></div>
|
||||||
{/if}
|
{/if}
|
||||||
<video controls src={videoValue} />
|
<video bind:this={vidPlayerRef} controls src={videoValue} />
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: right;padding-top:5px;">
|
<div style="text-align: right;padding-top:5px;">
|
||||||
<button on:click={render} disabled={!ffmpegLoaded || rendering}>
|
<button on:click={render} disabled={!ffmpegLoaded || rendering}>
|
||||||
|
|
Loading…
Reference in New Issue