amer
2
Hi @gianlucabiancardi96,
You can use custom code to call bubble backend apis achieve this task as follows:
html
<script>
// Get video element
const video = document.getElementById('courseVideo');
// Save progress periodically
video.addEventListener('timeupdate', () => {
saveProgress(video.currentTime);
});
// Clear progress on video end
video.addEventListener('ended', () => {
saveProgress(0); // Reset progress to 0
});
</script>
Alternatively, you can use local storage for progress tracking, depending on your specific needs.
Let me know if you need further assistance!
Best regards,
Abdullah