Hello @Boopathi K , Thanks for your patience. For this scenario, you can try using Azure Media Services Content Protection to restrict access to the videos. Here are the high-level steps you can follow:
- Encode your video content and publish it to your Azure Media Services account.
- Create a Content Protection policy that specifies the access control rules for your videos. You can use Azure Media Services REST APIs, Azure Portal, or Azure CLI to create the Content Protection policy.
- Use the Content Protection policy to protect your video content. When you apply the Content Protection policy, it generates a protection key and a Content Key ID.
- Create a custom authentication and authorization system to validate the user credentials before granting access to the video. This can be implemented using your own authentication system or a third-party authentication provider.
- When a user requests to view a video, check their credentials and determine if they have permission to access the video.
- If the user has permission, generate a URL with a token that includes the Content Key ID, the protection key, and the expiration time. You can use the Azure Media Services REST API to generate the token.
- The user can use the URL with the token to access the video for the specified period.
- Configure your CDN to cache the protected video content and serve it to users from the CDN. By using Content Protection with Azure Media Services, you can apply dynamic encryption to your video content and control access to it. Please review the doc for more information: https://learn.microsoft.com/en-us/azure/media-services/latest/drm-content-protection-concept Hope that helps. Best, -Grace