in this post i have provide some few line code to upload video on bright cove using php. in the bright cove video cloud not need to use any api for upload video on bright cove video cloud upload video using php. Bright cove is a one of the leading global provide service for video cloud.this company's product like video cloud, market-leading online video platform, Zencoder, HTML5 video player media processing service and HTML5 video player technology provider and also include cloud based ad insertion and video stitching service.this company include has more than 6,300 customers in over 70 countries that rely on bright cove cloud content services.
Britecove provide two HEADQUARTERS first CORPORATE HEADQUARTERS located at Boston and second JAPAN HEADQUARTER located at Tokyo.
Britecove provide two HEADQUARTERS first CORPORATE HEADQUARTERS located at Boston and second JAPAN HEADQUARTER located at Tokyo.
follow below few steps to upload video on bright cove videocloud.
1. go to this link https://videocloud.brightcove.com and sign in with Email Address and Password.
2. click on Account Settings.
3. than click on API Management here you can found two read token and one write toke.
4. now create index.php file, copy below text and paste within index.php file.
2. click on Account Settings.
3. than click on API Management here you can found two read token and one write toke.
4. now create index.php file, copy below text and paste within index.php file.
index.php
<?php
// Developed By : Bhavesh Bodar
require('bc-mapi.php');
$bc = new BCMAPI('READ TOKEN','WRITE TOKEN');
$metaData = array(
'name' => 'VIDEO TITLE HERE',
'shortDescription' => 'VIDEO DESCRIPTION HERE'
);
try {
$id = $bc->createMedia('video', 'FILE PATH WITH FILENAME', $metaData);
echo 'New video id: ';
echo $id;
} catch(Exception $error) {
echo $error;
die();
}
?>
5. set read token and write token with video detail like video name and description.
6. now run the index.php file and your video will be successfully uploaded at media in
https://videocloud.brightcove.com/media
here you can found your uploaded video.
6. now run the index.php file and your video will be successfully uploaded at media in
https://videocloud.brightcove.com/media
here you can found your uploaded video.




