To automate your video website platform, you need video upload directly through your website. Read this for details about this method. The following code gives an example written in C#. C# Sample Code for VdoCipher OTP Generation In this example, the sample videoID is 1234567890, and the API Secret Key is a1b2c3d4e5. The time-to-live for OTP validity is set to 300s in the sample code. You can reference the API documentation for more info. var client = new RestClient("https://dev.vdocipher.com/api/videos/1234567890/otp"); var request = new RestRequest(Method.POST); request.AddHeader("Accept", "application/json"); request.AddHeader("Content-Type", "application/json"); request.AddHeader("Authorization", "Apisecret a1b2c3d4e5"); request.AddParameter("undefined", "{\n\t\"ttl\":300\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); The controller makes an API request to…
PHP implementation of VdoCipher API for Video Security
Update 5 June 2018 This implementation of VdoCipher Secure Streaming API is updated for latest API version v3, and for latest player version 1.6.4. A previous version of the blog used API v2. While we still support API version v2 we recommend that you use API v3 as part of your video workflow. If you have any queries regarding API v2 please do get in touch with us at support@vdocipher.com. The complete VdoCipher API reference is available here. A sample video-based workflow for your website is suggested here. Here is a PHP code to use VdoCipher API along with dynamic watermarking.…
Having multiple videos on the same page
TLDR: We do not recommend having multiple videos embedded on the same page. Doing so can result in "device incompatible" error message on the player. Keep dedicated pages on your website for each video, or at least make a UX that keeps only one player loaded at a time. What causes the error Under the hood, there are big differences between a regular HTML5 video element and another one running with DRM. Playing a DRM encrypted video takes a few extra steps inside the browser and the operating system. It is supposed to decrypt the video while it is getting…
Import videos from Box.com
We have just added support for Box.com imports. If you can upload your videos to Box.com, you can import videos directly from Box.com. Steps to Import Videos from Box.Com In your dashboard, go to Import from and choose "Add from Box". This will open a new pop-up window on Box.com. You should be able to choose your video file by selecting the check box. You can select multiple files at the same time. On clicking choose, we shall take up the list of videos and add it to your dashboard. The video will come with Queued status at the beginning.…
Set IP Geo restriction on videos via API/Dashboard: VdoCipher DRM
VdoCipher provides a complete DRM with encryption, backend licensing and viewer specific watermarking to safeguard video content. Sometimes owing to the rights and permissions to distribute a video, businesses look to white-list or blacklist content for certain geographies & IPs. Here is an API guide to do IP & Geo restriction for your VdoCipher account. This should allow you to configure any complicated setting of IP and country restrictions. Rules are defined by a JSON string called rule-set. This JSON contains an array of rule objects: Every rule is an object containing action, ipSet and countrySet Each matching rule overrides the previous matching rule.…
Import videos from S3 bucket with “Import from AWS S3”
[caption id="attachment_1486" align="aligncenter" width="1152"] Import videos directly from Amazon S3 bucket to VdoCipher for secure video hosting[/caption] AWS is the most popular cloud service provider at the moment and a lot of our customers have their videos stored in their S3 bucket. Their usual method of import was to generate temporary download URL and using them to import videos. This usually involved a bit of programming to AWS S3 API. With this new feature, we plan to make import videos from S3 to VdoCipher process a lot easier. Steps to import videos from S3 Bucket [caption id="attachment_1479" align="aligncenter" width="1157"] Interface for Importing video from…