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…
v2
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…