Create a video entity
To create your video streaming, you need to create an Entity object.
/v1/video-entities
POST
https://api.uiza.io/api-vod/owner/v1/video-entities
Request Body
Name
Type
Description
name*
string
The entity's name.
description
string
An arbitrary string attached to the object. Often useful for displaying to users.
encoding_template
string
Indicates whether encoding mode is enabled for the live_entity. Set as sd, hd
or fhd
to enable and as none
to disable.
{
"data": {
"id": "2b970a39-874a-4d2a-be8a-fd445646d74c",
"name": "My video 1",
"description": "Oops",
"input_url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"encoding_template": "hd",
"content_policy": "public",
"status": "processing",
"playback": null,
"created_at": "2020-03-23T07:22:34Z",
"updated_at": "2020-03-23T07:22:34Z"
}
}
curl --location --request POST 'https://api.uiza.io/api-vod/owner/v1/video-entities' \
--header 'Authorization: <token>' \
--header 'uiza-app-id: <your_app_id>' \
--data-raw '{
"name": "My video 1",
"input_url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"encoding_template": "hd"
}'
Last updated
Was this helpful?