02 June 2015 - Changed Brightcove manifest
over 9 years ago by Encoding.com Product Team
API request
Now default output format is mp4
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>AddMedia</action>
<source>http://yoursite.com/media.mov</source>
<resend_to>http://manage.encoding.com/third_party/brightcove/add_media.php</resend_to>
<notify>http://manage.encoding.com/third_party/brightcove/add_manifest.php</notify>
<title>Your media title</title>
<description>Short description of the media</description>
<long_description>
Put
Long description
Of the Media Here
</long_description>
<bc_userid>12345</bc_userid>
<bc_mediaid>12345</bc_mediaid>
<notify_email>[email protected]</notify_email>
<link_title>Link title</link_title>
<link_url>http://encoding.com</link_url>
<active>true</active>
<tag>tag's content</tag>
<format>
<output>mp4</output>
<destination>ftp://user:[email protected]/encoded/media.mp4</destination>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "AddMedia",
"source": "http://yoursite.com/media.mov",
"resend_to": "http://manage.encoding.com/third_party/brightcove/add_media.php",
"notify": "http://manage.encoding.com/third_party/brightcove/add_manifest.php",
"title": "Your media title",
"description": "Short description of the media",
"long_description": "Put Long description Of the Media Here",
"bc_userid": "12345",
"bc_mediaid": "12345",
"notify_email": "[email protected]",
"link_title": "Link title",
"link_url": "http://encoding.com",
"active": "true",
"tag": "tag's content",
"format": {
"output": "mp4",
"destination": "ftp://user:[email protected]/encoded/media.mp4"
}
}
}
The manifest file format
Changed value of the 'type' attribute from 'FLV_FULL' to 'VIDEO_FULL'
Replaced the 'flash-full-refid' attribute with 'video-full-refid'
<?xml version="1.0" encoding="utf-8"?>
<publisher-upload-manifest publisher-id="{bc_userid}" preparer="encoding.com" report-success="TRUE">
<notify email="{notify_email}"/>
<asset filename="{result_filename}" refid="{result_filename}-{md5_hash}" size="{file_size}" hash-code="{md5_hash}" type="VIDEO_FULL"/>
<title name="{title}" refid="{bc_mediaid}" active="{active}" video-full-refid="{result_filename}-{md5_hash}">
<short-description>{description}</short-description>
<long-description>{long_description}</long-description>
<related-link-url>{link_url}</related-link-url>
<related-link-text>{link_title}</related-link-text>
<rendition-refid>{result_filename}-{md5_hash}</rendition-refid>
<tag>tag's content</tag>
</title>
</publisher-upload-manifest>