I am working on an elearning platform. The elearning courses can be in different formats

ie just text, text with videos, just videos etc, etc

I am currently looking for a platform to host the videos on. However it is important that we can protect them from being watched/downloaded by people that haven't bought a given course.

So is there video hosting service that has an api that allows the creation of tokens for each user or each time the user watches the video?

Any other...

Control access to videos