This server is used to gate access to a video.
- Call the
/challenge
endpoint to get a challenge - Sign the challenge
- Call the
/verify
endpoint to verify the signature, and receive a stream token - Call the
/stream/:streamtoken
endpoint to get the video, using the stream token received in step 3
Build and run:
- Create the .env file based on the .env.example file
- Replace the example movie in the /raw folder with your gated movie.
npm install
npm run dev