Skip to main content

Public and private videos

Hyperserve offers two different video access types, public and private.

Public

These videos are publicly available and unrestricted, anyone who has the url can access the file at any time from anywhere. If your video needs to be restricted from public access see private videos below.

Refer to the Get Public Video Api for getting public videos.

Private

These videos are restricted by urls that expire after a certain amount of time. The time frame is set in seconds when retrieving a new private url for your video. It is recommended to create a new private url each time you want to give access to users and set the expiration time appropriately.

Refer to the Get Private Video Api for getting private videos.

For example, you may want to restrict access to videos that are for pay or gated by authentication. In that case you could determine if the user is allowed to access the video in your application. Then use the get private video api to generate a signed url with an appropriate expiration time. This ensures that the private video is only available to this user for specific amount of time.