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.
you’d likely be best served by using a dedicated video service like mux - very affordable and the api is great. it gives you everything you need and is much better for video than bubble.
bubble storage is expensive (I use filestack + s3)
bubble video playback is very jumpy (I use mux as cdn and video playback optimizer - with mux you can get video as smooth as instagram feed)