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

Compare with Current View Page History

« Previous Version 7 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>\""

Parameter

Description
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.

 

Suffix of the File Name

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

SuffixMime Type
mp4video/ mp4
mov

video/quicktime

flv

video/x-flv

wmv

video/x-ms-wmv

mpg

video/mpeg

avi

video/x-msvideo

mp3

audio/mpeg

mpeg

video/mpeg

m4v

video/x-m4v

vob

video/mpeg

f4v

video/x-flv

wav

audio/vnd.wave

3gp

video/3gpp

rm

audio/x-pn-realaudio

mts

video/mpeg

m2v

video/mpeg

wma

audio/x-ms-wma

mxf

application/mxf

m2p

video/mpeg

m2t

video/mpeg

mkv

video/x-matroska

webm

video/webm

qt

video/quicktime

mp2

audio/mpeg

m2ts

video/mpeg

ogvvideo/ogg

 

Response