API v2 Archives - VdoCipher Blog Secure Video Streaming Thu, 22 Feb 2024 10:42:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.5 https://www.vdocipher.com/blog/wp-content/uploads/2016/11/cropped-VdoCipher-logo2-32x32.png API v2 Archives - VdoCipher Blog 32 32 Where does VdoCipher DRM video fit in your tech stack. https://www.vdocipher.com/blog/2016/08/vdocipher-fit-tech-stack/ https://www.vdocipher.com/blog/2016/08/vdocipher-fit-tech-stack/#respond Sat, 27 Aug 2016 04:47:50 +0000 https://www.vdocipher.com/blog/?p=680 Traditional Video integration In case of most media integration, a static media URL is sent to the client. The client can use this to begin playing media. A client in this case can be either a web app or a mobile/tv application. The data to provided to the client is a long-lived url which can be used […]

The post Where does VdoCipher DRM video fit in your tech stack. appeared first on VdoCipher Blog.

]]>
Traditional Video integration

In case of most media integration, a static media URL is sent to the client. The client can use this to begin playing media. A client in this case can be either a web app or a mobile/tv application. The data to provided to the client is a long-lived url which can be used multiple times.

DRM video integration

When you are working with premium content, a requirement for secure video hosting is that you give only a one-time usable resource. This URL to DRM video should be generated only when the client is authenticated and has the permission to get access to the file. Only the server component has the authority to generate this temporary resource access.

DRM Video for Secure Video Hosting
Workflow for DRM videos

In case of Vdocipher, the temporary access URL is the otp while the authority to generate this OTP is the api secret key.

The API secret key must never be shipped along with the app code. The app SDK just needs an OTP for playback. Hence, the right way of doing this is to create an API endpoint as part of the app backend that you already have. This API endpoint should receive an authenticated HTTP request for playing a video (assuming you are authenticating users by some means such as login, etc.) and respond with an OTP. It is the backend system which should be responsible for making API calls. The viewer simply asks to play a particular video. This is followed by an access check on your web server. Your web server then takes the VdoCipher id for that video, and calls for OTP on the VdoCipher API.

A workflow in this case will be:
1. Client logs in and has an auth token for your backend framework
2. Client requests to play that new video.
3. Your Backend translates that new video into the corresponding VdoCipher id
4. Your Backend makes the API call to Vdocipher to get an otp.
5. Your Backend responds to the request with OTP
6. Client uses this OTP to play the video.

An architecture implementation for Widevine DRM and free trial is included here. 

The post Where does VdoCipher DRM video fit in your tech stack. appeared first on VdoCipher Blog.

]]>
https://www.vdocipher.com/blog/2016/08/vdocipher-fit-tech-stack/feed/ 0