thrimbletrimmer: Add waveform image below video

pull/230/head
Mike Lang 3 years ago committed by Mike Lang
parent 3de44d6731
commit 61f55d03fb

@ -79,6 +79,7 @@
</div>
<div id="EditorDetailsPane">
<img id="Waveform" style="width: 100%">
<div id="EditNotesPane" style="display:none">
Edit Notes: <br/>
<textarea id="EditNotes" disabled ></textarea>

@ -272,6 +272,10 @@ function loadPlaylist(isEditor, startTrim, endTrim, defaultQuality) {
document.getElementById("wubloaderAdvancedInputTable").style.display = "block";
}
});
// Get audio waveform. Note we assume "source" is a valid quality.
const waveformURL = `/waveform/${stream}/source.png?${buildQuery(range)}`;
document.getElementById("Waveform").setAttribute("src", waveformURL);
}
function thrimbletrimmerSubmit(state, override_changes = false) {

Loading…
Cancel
Save