PHP Classes

File: manual.txt

Recommend this page to a friend!
  Classes of Dave Smith   PHP Hulu Video   manual.txt   Download  
File: manual.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Hulu Video
Generate HTML to embed Hulu videos in Web pages
Author: By
Last change: Document changelog
Date: 7 years ago
Size: 2,614 bytes


Class file image Download
Class: hulu Version: 1.1 11/7/2015 Copyright 2015 Wagon Trader This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <>. Description: This class allows you to integrate Hulu content into web pages. It can retrieve the embed data provided from Hulu. It can generate custom video embeds. It can scrape the content page for additional video data. It can download and access Hulu's public sitemap files for search capabilities on all of Hulu's public content. Files: hulu.class.php - Main class example.php - Example usage script fetch_data.php - System check and initialization for download of Hulu's public sitemaps search.php - Simple search /video_data folder - folder to hold Hulu's public sitemaps Installation: Upload files to a web accessible location on your server (eg. public_html) Configuration: The class if configured to work with most server configurations. You can change the following settings in the class should you need to... $huluPublicAccessKey - This access key is provided by hulu and should not be changed unless Hulu changes the access key for their site. $dataFolder - Specify the folder off of the script folder where the public sitemaps will be stored. By default this will be a folder named 'video_data'. $dateFormat - Set this to the format you want to convert date fields to. Usage: The included example.php file includes examples on instantiating the class and basic operation instructions. You can turn on/off data mining features by setting the variables in this file. Hulu Public Sitemaps: Hulu provides sitemaps in xml format for all of their public content. There is no need to download and maintain these files unless you want to provide search capabilities. To download, point your browser to the fetch_data.php file. changelog 1.1 Suppressed warnings if unable to fetch file Fixed retaining old sitmaps when total available decreases Fixed script fails when video not found in sitemaps 1.0 Initial release