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…
ASP
Code to embed vdocipher video in ASP.NET MVC with C#
The following code is the complete set up for embedding video in ASP.NET MVC using vdocipher secure streaming. This code has been generated using Visual Studio Community 2015. Vdocipher video in asp.net: controller view and config files https://gist.github.com/vibhavsinha/c82239fea15888afd75b Do not save API Secret in the code API secret is a key which gives your website authority to generate access tokens (OTPs) for video playback. This secret key can also be used to upload, delete videos in your vdocipher account. Hence, it should not be hard-coded in the application. It should be kept as an app secret. In the above example, it has been…
Video upload from website or server to VdoCipher API
[Update 24/05/2018] This blog has been updated for API Version v3. A previous version of this blog used API v2. If you are using API v2 you can contact us at support@vdocipher.com. You can use VdoCipher API v3 to build a workflow around your video website as suggested in this blog. The complete API v3 reference, with sample codes for different backend languages, can be accessed from the API Sample Docs. We use Amazon AWS storage to store original user videos securely in AWS S3. With an intent to automate their online business, many of our customers wish to allow their users…
ASP.NET implementation of VdoCipher API
Here is a ASP.NET code to use VdoCipher API. You need to simply put in the right client_secret_key and the correct video_id ( the phrase in caps in both files ). https://gist.github.com/vibhavsinha/8029efcf0b66016f8040 The code should work out of the box after extracting inside PHP running server and replacing secret_key and video_id. The structure of annotation JSON is described in the link : Add text to videos with watermark For other API and details, check out documentation or contact us directly at info@vdocipher.com.
ASP implementation of VdoCipher API
Here is a classic ASP code to use VdoCipher API along with dynamic watermarking. You need to simply put in the right client_secret_key and the correct video_id ( the phrase in caps in both files ) https://gist.github.com/vibhavsinha/ffae3259b43647e85829 The code should work out of the box after extracting inside ASP server and replacing secret_key and video_id. The structure of annotation JSON is described in the link : Add text to videos with watermark