We have website in drupal & it is working fine. We are uploading videos to “Brightcove Video Studio” through its CMS and Dynamic Ingest API. It returns us a Video Id. but when we use this video Id in our web services to insert id in our database, it gives error. Any one have idea about this?

Please find below steps:

Step 1: Generating Bearer token
URL : https://oauth.brightcove.com/v3/access_token
Header : Basic Auth
client id: {client-key)
key: {secret-key}

Request parameters :
grant_type : client_credentials

Response :
{
"access_token": "APy6VTJpc3xDi0Fkee7CsS9t6uYAqVwbpAD-T3y0sF8svXJAOd2c4CSP0pIkhx-r3KGdWQB_LQNN9FzUy49Z6NZq98-oKLMvi9ueJtHjcQIT5Tb_88TPYAf9EVOzh4AMgOuWlGQXT5bNj-X9Y4CTDhNNMeMQHSWdPRtztduqDUXlXnnRIEGAlk_B8-RF0xg6M7CXyC60sag2-vvwx5UhyGFf3dj4iemkbXByQDtKreNT5MeqhO07HMwa9sJ9H7QxMcv9nETncUtw0H1yEmDEjrPPbVuBprHRjb4NWair-5mUZuCUU3Y50O_4_EeE0txjRe8Fd9NsdvSGmrnqiuZtYylxsxfIXVZ7PkIVEEqJrXvlgqHNU8z7InMXd866MQxKzhjeJYDfiWCkvDR5guI7ByK926wG-KNZnlO0G0z9tvcEO_ptFzsp2XP3ELYuZ4v2dvvq782A5nZGVBmyxSSW4Zu-0cFX8swhmqrZE0_HlfuOsC-cpn1gKOaH4uQRn-G0Sh44ZjyyzjiLrS8Ceck-pOn2FqE0xtnuJAIPxDTcDukf1FgC9k4o9vw",
"token_type": "Bearer",
"expires_in": 300
}

Step 2 : CMS : Video - Create Video
http://docs.brightcove.com/en/video-cloud/cms-api/references/cms-api/ver...

URL: https://cms.api.brightcove.com/v1/accounts/3710272451001/videos
Header :
Content-Type : application/json
Authorization : Bearer APy6VTJpc3xDi0Fkee7CsS9t6uYAqVwbpAD-T3y0sF8svXJAOd2c4CSP0pIkhx-r3KGdWQB_LQNN9FzUy49Z6NZq98-oKLMvi9ueJtHjcQIT5Tb_88TPYAf9EVOzh4AMgOuWlGQXT5bNj-X9Y4CTDhNNMeMQHSWdPRtztduqDUXlXnnRIEGAlk_B8-RF0xg6M7CXyC60sag2-vvwx5UhyGFf3dj4iemkbXByQDtKreNT5MeqhO07HMwa9sJ9H7QxMcv9nETncUtw0H1yEmDEjrPPbVuBprHRjb4NWair-5mUZuCUU3Y50O_4_EeE0txjRe8Fd9NsdvSGmrnqiuZtYylxsxfIXVZ7PkIVEEqJrXvlgqHNU8z7InMXd866MQxKzhjeJYDfiWCkvDR5guI7ByK926wG-KNZnlO0G0z9tvcEO_ptFzsp2XP3ELYuZ4v2dvvq782A5nZGVBmyxSSW4Zu-0cFX8swhmqrZE0_HlfuOsC-cpn1gKOaH4uQRn-G0Sh44ZjyyzjiLrS8Ceck-pOn2FqE0xtnuJAIPxDTcDukf1FgC9k4o9vw
Request parameters :
{
"name": "test_DI"
}

Response :
{
"id": "4898623479001",
"account_id": "3710272451001",
"ad_keys": null,
"complete": false,
"created_at": "2016-05-18T04:09:21.938Z",
"cue_points": [],
"custom_fields": {},
"description": null,
"digital_master_id": null,
"duration": null,
"economics": "AD_SUPPORTED",
"folder_id": null,
"geo": null,
"images": {},
"link": null,
"long_description": null,
"name": "test_DI",
"original_filename": null,
"published_at": "2016-05-18T04:09:21.938Z",
"reference_id": null,
"schedule": null,
"sharing": null,
"state": "ACTIVE",
"tags": [],
"text_tracks": [],
"updated_at": "2016-05-18T04:09:21.939Z"
}

Step 3 : Use Dynamic Ingest API
URL: https://ingest.api.brightcove.com/v1/accounts/3710272451001/videos/48986...
Header:

Content-Type : application/json
Authorization : Bearer APy6VTJpc3xDi0Fkee7CsS9t6uYAqVwbpAD-T3y0sF8svXJAOd2c4CSP0pIkhx-r3KGdWQB_LQNN9FzUy49Z6NZq98-oKLMvi9ueJtHjcQIT5Tb_88TPYAf9EVOzh4AMgOuWlGQXT5bNj-X9Y4CTDhNNMeMQHSWdPRtztduqDUXlXnnRIEGAlk_B8-RF0xg6M7CXyC60sag2-vvwx5UhyGFf3dj4iemkbXByQDtKreNT5MeqhO07HMwa9sJ9H7QxMcv9nETncUtw0H1yEmDEjrPPbVuBprHRjb4NWair-5mUZuCUU3Y50O_4_EeE0txjRe8Fd9NsdvSGmrnqiuZtYylxsxfIXVZ7PkIVEEqJrXvlgqHNU8z7InMXd866MQxKzhjeJYDfiWCkvDR5guI7ByK926wG-KNZnlO0G0z9tvcEO_ptFzsp2XP3ELYuZ4v2dvvq782A5nZGVBmyxSSW4Zu-0cFX8swhmqrZE0_HlfuOsC-cpn1gKOaH4uQRn-G0Sh44ZjyyzjiLrS8Ceck-pOn2FqE0xtnuJAIPxDTcDukf1FgC9k4o9vw

Request parameters :
{
"master": {
"url": "http://learning-services-media.brightcove.com/videos/mp4/Bird_Chickadee.mp4"
},
"profile": "mp4-only"
}
Response :

{
"id": "f30898cf-c1ee-4f9e-984f-180494b8f251"
}

Step 4 : We are using id (eg 4898623479001) which we get from CMS - Video - Create Video in our API, gives us below error
{
"form_errors": {
"field_brightcove_video][und][0][brightcove_id": ": Found no valid video with that name. Please note that it might take several minutes after the video has been uploaded in Brightcove Studio to appear in the API."
}
}

Thanks in Advance

Comments

bc_dhowell’s picture

Hi Kajal,

Thank you for bringing this to our attention via our support methods at Brightcove. We have reached out to you via a support case to solve the issue and further assistance you where we can to better understand and resolve your issue with creating videos. If you have any further questions or comments regarding this, please do not hesitate to contact Brightcove support or update your existing case with your comments. We appreciate any additional information you may have and will be happy to review utilizing our support channels.

Thank you,

David Howell
Brightcove Inc.