“YouTube Video Uploader 3.0” Documentation by “Ams Naser” v1.0

“YouTube Video Uploader 3.0”

Created: 22/3/2016
By: Ams Naser
Email: viduploader3@gmail.com

Thank you for purchasing YouTube Video Uploader 3.0. If you have any questions that are beyond the scope of this help file, please feel free to contact me via my Envato Market contact form or visit the script Setup Guide for advanced details.

Table of Contents

  1. Introduction
  2. Requirements
  3. Installation
  4. Running and integrating the script
  5. Options
  6. Credits and Resources

1. Introduction - top

YouTube Video Uploader 3.0 is a PHP script that lets you add YouTube uploading functionality to your own website or web application. It allows your users to upload videos directly to your own YouTube Channel, without the need to sign in to YouTube or even have Google Account. The script uses the latest version (3.0) of YouTube Application Programming Interface (API) to upload videos and and set the video's metadata (title, description, tags, status, and category).

2. Requirements - top

Before purchasing using the script, please make sure that you meet the minimum requirements:
  1. A server capable of parsing PHP (5.2.0 or higher).
  2. jQuery 1.4.x or greater.
  3. Any HTML5 compatible browser (e.g., Chrome, FireFox, MS Edge, etc.)

3. Installation - top

Please follow these steps to install the script:
  1. Unzip the package to the root directory or any other directory in your server. A new directory (viduploader3) will be created with the following structure:
  2. Load install.php file in your browser (example: http://example.com/viduploader3/install.php)
  3. Fill out the installation form with your Google API Client credentials and click install button. (learn how to Create your Google API App and Get your App Credentials). You will be prompted to confirm login using the same account you have used to create the API App. Click "Allow" button to complete installation.
  4. If authorization was successful, you will be directed to the video upload form to upload your first video.

4. Running and integrating the script - top

  1. Load http://example.com/viduploader3 in your browser.
  2. Complete all form fields, which is mandatory according to the form validation options.
  3. Select the video you need to upload the click the Upload button and watch the uploading progress bar.
  4. If upload is successful, you will be redirected to viduploader3/videopage.php which could be any page in your server to PASS, display or save to MySQL the video data (e.g., key, title, description, etc.), update user's records, or notify the site admin for new uploads.
    Example: http://example.com/viduploader3/videopage.php?video_key=Y1aMWduy&title=MyVideoTitle&desc=MyVideoDescription
  5. If you need to integrate the form in any of your existing pages (e.g., mypage.php) just add the following two lines. However, it is very recommended to place mypage.php inside the viduploader3 directory to avoid any errors, at least at the beginning and until you get familiar with the script.
    // in the head section of your page	
    include ("uploader_head.php");  
    ... your page code ...
    // in the body of your page where you need to show the upload form include("uploader_form.php");

5. Options - top

Two form options are founded in the viduploader3/uploader_form.php file: video file size and video type. Other options should NOT be changed:
'fileSizeLimit' : '1024 MB'  // examples: '1000 KB'or '1 GB' , 
'fileType' : ['video/x-ms-wmv', 'video/mp4', 'video/x-msvideo', 'video/x-sgi-movie', 'video/x-flv', 'video/webm', 'video/3gpp'],

6. Credits and Resources - top

  1. YouTube Video Uploader 3.0: Advanced Setup Guide
  2. Create your Google API App for YouTube API 3.0 Video Uploader: Video Tutorial
  3. Google: APIs Client Library for PHP
  4. Dom Sammut: PHP Server-Side YouTube V3 OAuth API Video Upload Guide

Ams Naser

Go To Table of Contents