WorkflowsUpload YouTube videos


3
Import the YouTube Thumbnail

You still haven't completed step 1

Import the YouTube Thumbnail

thumbAsset.setContent

To import the YouTube thumbnail, use the following URL structure:
http://img.youtube.com/vi/[VIDEO_ID]/maxresdefault.jpg
Replace [VIDEO_ID] with the YouTube ID of the video you'd like to use.

For example: in this YouTube video; https://www.youtube.com/watch?v=ioY-Cp58zkY , the ID is ioY-Cp58zkY.
And the Thumbnail URL is: http://img.youtube.com/vi/ioY-Cp58zkY/maxresdefault.jpg .

Parameters

Set the values below to try this step

curl -X POST https://www.kaltura.com/api_v3/service/thumbasset/action/setContent \
    -d "ks=$KALTURA_SESSION" \
    -d "contentResource[objectType]=KalturaUrlResource" \
    -d "contentResource[url]=http%3A%2F%2Fimg.youtube.com%2Fvi%2FioY-Cp58zkY%2Fmaxresdefault.jpg"
Copy to clipboard