Recording lesson is complete when user finishes watching vimeo video
1 answer
Vimeo has an API that can fire a javascript event if the video ends, check the vimeo developer guide . On the event, OnFinish
you can make an ajax call that marks the video as an observable. You can even use an event onPlayProgress
and mark the video as observable when someone has watched the video, say 90%, based on getCurrentTime()
andgetDuration()
Check out the codepen for a detailed example of using the API.
+6
source to share