Recording Seek (#7163)

This commit is contained in:
anthony-ricci
2024-10-18 20:45:21 -04:00
committed by GitHub
parent 81fc86fc01
commit 7122ecc154
9 changed files with 26 additions and 11 deletions

View File

@@ -821,6 +821,19 @@
}
}
function recording_seek(event, player_id, data, audio_type) {
if (recording_audio) {
if (document.getElementById('playback_progress_bar_background_' + player_id)) {
audio_player = document.getElementById('playback_progress_bar_background_' + player_id);
}
else if (document.getElementById('recording_progress_bar_' + player_id)) {
audio_player = document.getElementById('recording_progress_bar_' + player_id);
}
recording_audio.currentTime = (event.offsetX / audio_player.offsetWidth) * recording_audio.duration;
update_progress(recording_id_playing);
}
}
{/literal}
//handle action bar style on scroll