update name of volume slider, reset volumeslider on reload

This commit is contained in:
Henne 2020-04-28 15:48:57 +02:00
parent db6d963e3f
commit bca93cc1b0
1 changed files with 2 additions and 0 deletions

View File

@ -296,6 +296,7 @@ function connect() {
}
$(video[i]).find('input')[0].value = remoteMappingName[i];
$('.volume-' + i + ' .name').text(remoteMappingName[i]);
$('.volume-' + i + ' input').val(0.7);
$(video[i]).find('video').on('resize', onVideoResize).width(videoSize.width).height(videoSize.height);
}
}
@ -341,6 +342,7 @@ function midiSetLevel(id, level) {
function setName(position, name) {
console.log(`setting name of ${position} to ${name}`);
remoteMappingName[position] = name;
$('.volume-' + position + ' .name').text(name);
for(let i in trackMapping) {
if(trackMapping[i] === position) {
detachUser(i);