PHP Classes

Vudu PHP control: Send commands to a Vudu set top box

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 151 All time: 9,071 This week: 524Up
Version License PHP version Categories
vudu 1.0MIT/X Consortium ...5.0XML, PHP 5, Web services, Video, Hard...
Description 

Author

This class can send commands to a Vudu set top box (BX100 or VBX1000).

It can connect to the IP address and port of a Vudu set top box and send several types of commands.

Currently it can send commands to power on or off, play or pause, scroll or other commands to mimic the VUDU remote control, formatted as XML.

The class returns whether or not the transmission of the command was successful.

Innovation Award
PHP Programming Innovation award nominee
October 2015
Number 9


Prize: One downloadable e-book of choice by O'Reilly
Vudu is a set top box that can play movies. It can accept commands sent from a local network.

This class can send commands to a Vudu set top box from a PHP script.

Manuel Lemos
Picture of Matthew Boyle
  Performance   Level  
Name: Matthew Boyle <contact>
Classes: 6 packages by
Country: United States United States
Age: ???
All time rank: 1963276 in United States United States
Week rank: 206 Up24 in United States United States Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php

/*

VUDU PHP control example
This is an example only meant to show how vudu.class.php
might be used

The same license applies to this example as in the class source.

Copyright (c) 2015 Matthew Boyle
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors',true);

include(
'vudu.class.php');

$com = isset($_REQUEST["v"]) ? strtolower($_REQUEST["v"]) : "select";

// example Vudu address
$ip = '192.168.0.17';

$vudu = new VUDU;

$vudu->vudu_set_addr($ip);

// send a command and return either an error message or the command text
if( $action = $vudu->vudu_action($com) === false ){
    die(
$vudu->error);
}else{
    die(
$vudu->com_text);
}

?>


Details

This class provides a method to control a VUDU set top box using XML over a socket. It is very easy to use - all available commands are listed in an array in the class and the action function handles each one. Note: This was created after viewing the downloads for Duet remote control for VUDU.

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file readme.txt Data description
Accessible without login Plain text file sample-vudu-ajax.php Example sample
Plain text file vudu.class.php Class The source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:151
This week:0
All time:9,071
This week:524Up