You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The video upload via REST API is a very useful feature for system integrators to synchronize the VideoManager with a CMS-master.

Upload-options are full-file or chunked upload, furthermore you can optionally specify title, description and keywords as metadata, as well as define a channel-ID and group-ID the uploaded video will be assigned to.

The following steps are necessary for the upload and are described in detail:

  1. Creating a video entity (with title, description)
  2. picking up a upload link from the file handler (the link has a timeout)
  3. uploading video.

 

1 Creating a Video Entity

First you need to create a new video entity in the VideoManager, in which you want to upload a video.

Request

curl -X POST https://api.video-cdn.net/v1/vms/< videoManagerId>/videos" -H "Content-Type: application/json" -d "{\"title\":\"<VIDEO TITLE>\", \"description\":\"<VIDEO DESCRIPTION\", {\"keywords\":\"<KEYWORD>\"}, {\"group\":\"<GROUP ID>\", {\"channel\":\"<CHANNEL ID>\", {\"fileName\":\"<FILE NAME>\""

ParameterDescription
videoManagerIdThe ID of the VideoManager, in which you intend to upload the video, e.g. "v1".


JSON-attributes

The parameter "fileName" is mandatory, all other parameters are optional.

 

The suffix of the file name is used to determine the mime type. In the following, all allowed suffixes are listed.

SuffixMime Type