Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bernhard Essl  >  Video Portal Player  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Video Portal Player
Embed videos from YouTube and other video sites
Author: By
Last change: add uk.youtube.com
Date: 7 years ago
Size: 2,204 bytes
 

Contents

Class file image Download
<?php

$content
.= "<strong>Youtube (+ uk.youtube.com)</strong><br />";
$content.= "http://www.youtube.com/watch?v=fvjT5FrWpS0 <br />";
$content.= "@http://www.youtube.com/watch?v=fvjT5FrWpS0 <br/>";
$content.="http://uk.youtube.com/watch?v=3_1Y8UoLIu4 <br />";
$content.="@http://uk.youtube.com/watch?v=3_1Y8UoLIu4 <br />";

$content.= "<strong>Google (googleplayer + videoplayer)</strong><br />";
$content.= "http://video.google.com/googleplayer.swf?docId=-2205197918273229623 <br />";
$content.= "@http://video.google.com/googleplayer.swf?docId=-2205197918273229623 <br />";
$content.= "http://video.google.com/videoplay?docid=-2205197918273229623 <br />";
$content.= "@http://video.google.com/videoplay?docid=-2205197918273229623 <br />";

$content.= "<strong>myspace (myspacetv.com + vids.myspace.com)</strong><br />";
$content.="http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=784348108 <br />";
$content.="@http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=784348108 <br />";
$content.="http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=4592484 <br />";
$content.="@http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=4592484 <br />";

$content.= "<strong>clipfish.de</strong><br />";
$content.= "http://www.clipfish.de/player.php?videoid=MTk0ODU4fDEw <br />";
$content.= "@http://www.clipfish.de/player.php?videoid=MTk0ODU4fDEw <br />";

$content.= "<strong>myvideo.de</strong><br />";
$content.="http://www.myvideo.de/watch/1651790<br />";
$content.="@http://www.myvideo.de/watch/1651790<br />";

$content.= "<strong>videotube.de</strong><br />";
$content.="http://videotube.de/watch/31603<br />";
$content.="@http://videotube.de/watch/31603<br />";

require_once(
'class.videoportalplayer.php');

$VideoportalPlayer = new VideoportalPlayer;

$content $VideoportalPlayer->getYoutube($content);
$content $VideoportalPlayer->getGoogle($content);
$content $VideoportalPlayer->getClipfish($content);
$content $VideoportalPlayer->getMyvideo($content);
$content $VideoportalPlayer->getVideotube($content);
$content $VideoportalPlayer->getMyspacetv($content);

print 
$content;

?>