Step 3 - Check Video Status
To find the status of your video you can send an HTTP GET request to
https://dev.vdocipher.com/api/videos/{{videoID}}
The following are the status values that may be returned:
- Pre-Upload - Upload policy has been returned (Step 1 is successful), but file is not yet uploaded (Step 2 not yet complete)
- Queued - Video has been uploaded and is being encoded and encrypted (Step 1 and Step 2 complete)
- ready - Video is ready for playback
Apart from video status, the video contains all details of the video. These include title, description, video upload time, video length, poster image URLs and associated tags.
{
"id": "1234567890",
"title": "zoo.mp4",
"description": "",
"upload_time": 15197xxxxx,
"length": 25,
"status": "ready",
"posters": [
{
"width": 854,
"height": 480,
"posterUrl": "https://d1z78r8i505acl.cloudfront.net/poster/123456.480.jpeg"
},
{
"width": 427,
"height": 240,
"posterUrl": "https://d1z78r8i505acl.cloudfront.net/poster/123456.240.jpeg"
}
],
"tags": [
"abcd",
"mnop"
]
}
Sample Code for Video Listβ
The sample video ID is written as {{videoID}}. Replace this with your video ID.
- CURL
- NODE
- PHP
- C#
- Python
- Ruby
curl -X GET \
https://dev.vdocipher.com/api/videos/{{videoID}} \
-H 'Accept: application/json'
var request = require('request');
var options = {
method: 'GET',
url: 'https://dev.vdocipher.com/api/videos/{{videoID}}',
headers: {Accept: 'application/json'},
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://dev.vdocipher.com/api/videos/{{videoID}}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Accept: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
var client = new RestClient("https://dev.vdocipher.com/api/videos/{{videoID}}");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
IRestResponse response = client.Execute(request);
import requests
url = "https://dev.vdocipher.com/api/videos/{{videoID}}"
headers = {
'Accept': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://dev.vdocipher.com/api/videos/{{videoID}}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
response = http.request(request)
puts response.read_body