Skip to main content

GET Video Assets by VideoId

Overview


The following table contains information about the GET method in regards to receiving the assets of a video.

GET Video Assets
MethodGET
URL or Endpoint/api/projects/projectId/videos/assets/videoId
HeadersAuthorization
ParametersvideoId, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project
videoIdYesstringUnique id of the video

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"filmStrip": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/thumbnails/filmstrip0.jpg",
"thumbnail": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/thumbnails/retina.jpg",
"streamResponse": {
"streams": [
{
"streamType": "hls",
"root": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/hls/master_file.m3u8",
"qualityTypes": [
{
"qualityType": "270p",
"streamUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/hls/270p/index.m3u8",
"statusDescription": "Complete"
}
]
},
{
"streamType": "mp4",
"root": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/mp4/master_file.gjp4",
"qualityTypes": [
{
"qualityType": "270p",
"streamUrl": "https://vp-dev.gjirafa.net/vps/prod/odgehtyo/encode/vjsmxhxq/mp4/270p.mp4",
"statusDescription": "Complete"
}
]
}
]
}
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarray[Object]Returns the response object
filmstripstringURL of the filmstrip.
thumbnailstringURL of the thumbnail.
streamResponsearray[Object]Returns the stream response as an array of objects.
streamsarray[Object]Returns the streams as an array of objects.
streamTypestringIndicates the file type of the video.
rootstringThe URL of the root.
qualityTypesarray[string]Returns the quality types as an array of strings.
qualityTypestringThe quality of the video.
streamUrlstringThe URL of the stream.
statusDescriptionstringStatus description of the stream.
resultInfostringReturns extra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed