Skip to content

Commit

Permalink
feat: add sound control bar
Browse files Browse the repository at this point in the history
  • Loading branch information
hankyul2 committed Aug 31, 2024
1 parent 38cddd2 commit 5111e18
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
<script src="static/js/index.js"></script>
</head>
<style>
.mybar {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-content: center;
align-items: center;
}
.mycontainer {
/* display: flex;
flex-direction: row;
Expand Down Expand Up @@ -192,8 +200,14 @@ <h2 class="title is-3">Abstract</h2>
<h2 class="title is-3">Music-Reactive Video Generation Comparison</h2>
<div class="content has-text-justified">
<p>We generate music-reactive videos on three different music genres (<em>i.e.</em>, Rock, K-POP, Traditional Instrumental Ensemble) and compare different generation methods.
In every genre, ours work favorably compared to decent baseline methods.
In every genre, ours work favorably compared to decent baseline methods. You can control video sound using below bar.
</p>
<div class="mybar">
<div>
<img src="static/images/sound-icon.png" alt="Volume" style="display:block; width: 1.5em;">
</div>
<input style="margin: 1em; width: 10em;" type="range" id="volumeControl" min="0" max="100" value="50" step="1" oninput="setVolume(this.value)">
</div>
</div>
<h4 class="title is-4">Genre 1: Rock</h4>
<h4 class="title is-5">Song Title: "Rock You Like A Hurricane"</h4>
Expand Down Expand Up @@ -711,7 +725,11 @@ <h2 class="title">BibTeX</h2>
}

function onPlayerReady(event) {
setVolumeForAllPlayers(10)
var initialVolume = document.getElementById('volumeControl').value;
setVolumeForAllPlayers(initialVolume)
}
function setVolume(volume) {
setVolumeForAllPlayers(volume)
}
</script>
</body>
Expand Down
Binary file added static/images/sound-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5111e18

Please sign in to comment.