I am writing a web application with video lessons in sequence. I want to use a streaming service for high availability and compressing content for different viewports. I would like the user to watch a video to unlock the next one. And I would like to monitor the number of views to know when to release the next one. And I would also like to keep the option of releasing the video publicly with those views counting toward the total number of views.
I read about OAuth on Vimeo and think that something like tokens could work, although I'd also need to make an API call to check if a user with a token did finish watching the video.
Does any video streaming service do such a thing?
(Migrated from WebApps where the question got no answers in one week.)