Showing posts with label video upload api. Show all posts
Showing posts with label video upload api. Show all posts

Monday, 10 February 2014

how to upload video on brightcove using php


                 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.

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.

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.


how to upload video on youtube using php

               in this post i have explain that how to upload quickly and faster than other sources to upload video on youtube from your website  using php.youtube is a world popular and faster video hosting website upload more video on youtube and growth your business on internet marketing.      





Download complate source code and live demo that how to upload video on youtube using php please visit our official website 
http://easyscript4u.com/2014/11/upload-video-youtube-using-php/


Friday, 7 February 2014

how to upload video on flickr using php example


   

     you can upload video on flickr easily follow some steps.

1. go to flickr.com
2. login with flickr userid and password.
3. go to this link : http://www.flickr.com/services/apps/create
4. click on "Request an API Key" link
5. than click on  'APPLY FOR A NON-COMMERCIAL KEY' button fill data and click on submit button.
6. here you can get your key and secrete.
7. than click on your app you have created. and click edit link to set your callbackurl.
8. now set in below code key and secrete with video or photo path, title and description and upload photos and videos on flickr using php.


if you have any query than you can contact on easyscript4you@gmail.com

 <?php  
 require_once('phpFlickr-3.1/phpFlickr.php');  
           $consumer_key = 'CONSUMER KEY';  
           $consumer_secret = 'CONSUMER SECRETE';  
           $vname = 'PHOTOS OR VIDEOS PATH';  
           $vtitle = 'TITLE OF THE PHOTOS OR VIDEOS';  
           $vdescription = 'DESCRIPTION';  
           $flickr = new phpFlickr($consumer_key,$consumer_secret, true);  
           if(empty($_GET['frob'])) {  
                $flickr->auth('write');   
           }  
           else {  
                $flickr->auth_getToken($_GET['frob']);  
           }  
           $resu = $flickr->sync_upload($vname, $vtitle, $vdescription, 'david walsh, php, mootools, dojo, javascript, css');  
           echo "<pre>"; print_r($resu);  
 ?>  




Thursday, 6 February 2014

how to upload video on vimeo using php

           
              There are follow some steps you to upload a video on vimeo via the vimeo API.also you can access all of your uploaded video on vimeo.com. vimeo is a one of the power full video sharing website like youtube.


 <?php  
 require_once('vimeo.php');  
 try  
 {  
      $consumer_key = 'CONSUMER KEY HERE';  
      $consumer_secret = 'CONSUMER SECRETE HERE';  
      $oauth_access_token = 'AUTH ACCESS TOKEN HERE';  
      $oauth_request_token_secret = 'AUTH TOKEN SECRETE HERE';  
      $vimeo = new phpVimeo($consumer_key, $consumer_secret, $oauth_access_token, $oauth_request_token_secret);  
      $video_id = $vimeo->upload('VIDEO NAME HERE');  
      $videotitle = 'VIDEO TITLE HERE !';  
      $videodesc = 'VIDEO DESCRIPTION HERE !';  
      if ($video_id) {  
       $sUploadResult = 'Your video has been uploaded and available <a href="http://vimeo.com/'.$video_id.'">here</a> !';  
       $vimeo->call('vimeo.videos.setTitle', array('title' => $videotitle, 'video_id' => $video_id));  
       $vimeo->call('vimeo.videos.setDescription', array('description' => $videodesc, 'video_id' => $video_id));  
                $videourl = 'http://vimeo.com/'.$video_id;  
                     $arry['data']['flag'] = true;  
                     $arry['data']['url'] = $videourl;  
                     $arry['data']['msg'] = "Video Uploaded Successfully.";  
                 }   
                 else   
                 {  
                      $arry['data']['flag'] = false;  
                      $arry['data']['msg'] = "Not able to retrieve the video status information yet. " ."Please try again later.\n";  
                 }  
 }  
 catch(Exception $e)  
 {  
      $arry['data']['flag'] = false;  
      $arry['data']['msg'] = $e->getMessage();  
 }       
      if($video_id)  
      {  
                $arry['data']['flag'] = true;  
                $arry['data']['url'] = $videourl;  
                $arry['data']['msg'] = 'Video Uploaded Successfully.';  
      }  
      else  
      {  
           $arry['data']['flag'] = false;  
      }  
      if($arry['data']['msg'] == 'Invalid signature')  
      {  
           $arry['data']['msg'] = 'Invalid Secret or oauth_request_token_secret';  
      }  
      if($arry['data']['msg'] == 'Permission Denied')  
      {  
           $arry['data']['msg'] = 'Invalid oauth_access_token';  
      }  
      echo "<pre>";  
      print_r($arry);  
 ?>  



Wednesday, 29 May 2013

how to upload video on Dailymotion using php

           
           you can easily upload video on Dailymotion.com site without login dailymotion website using php. the follow the given step to upload video from your website to dailymotion website and also access it into your website.











Download complate source code and live demo that how to upload video on dailymotion using php please visit our official website 
http://easyscript4u.com/2014/11/upload-video-dailymotion-using-php/