method-videos-getStatus
Last edited: January 27th, 2009 by Colin DevroeReturns the status of a video uploaded through the API.
Note: ALL arguments are required.
Authenication
Authentication is optional. After authenticating and using sessionid parameter, you may ask about your private data using this method. Asking about private data without authentication will result with returning empty data set or an error.
Arguments
- method
- Should be set to “Viddler.videos.getStatus”
- api_key
- Assigned Viddler API Key
- sessionid (optional)
- User session token
- video_id
- The ID of the video to get information for. This is the ID that’s returned by upload.video.
Example Call
http://api.viddler.com/rest/v1?method=viddler.videos.getStatus&api_key=123456&video_id=k04Eeue24Lk
Example Response
<?xml version="1.0" encoding="UTF-8"?> <video_status> <id>f4509d17</id> <failed>0</failed> <statuscode>1</statuscode> <statusmsg>Waiting for encode</statusmsg> </video_status>
Status codes
- 1 (failed=0)
- Waiting for encode
- 2 (failed=0)
- Encoding
- 3 (failed=1)
- Not encoded (encoding error)
- 4 (failed=0)
- Ready
- 5 (failed=0)
- Deleted