Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- final product here
- http://k8r.us/test4
- */
- class Video{
- var $mp4Video;
- var $ogvVideo;
- function setMp4Video($str){$this->mp4Video = $str;}
- function setOgvVideo($str){$this->ogvVideo = $str;}
- function getMp4Video(){return $this->mp4Video;}
- function getOgvVideo(){return $this->ogvVideo;}
- }
- $video1 = new Video;
- $video1->setMp4Video("test-video.mp4");
- $video1->setOgvVideo("test-video.ogv");
- $video2 = new Video;
- $video2->setMp4Video("test2-video.mp4");
- $video2->setOgvVideo("test2-video.ogv");
- $video3 = new Video;
- $video3->setMp4Video("test3-video.mp4");
- $video3->setOgvVideo("test3-video.ogv");
- $videos = array($video1,$video2,$video3);
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
- <?php include('plugins/k8r-modal/pack.html'); ?>
- <script src="plugins/flowplayer/flowplayer-3.2.11.min.js"></script>
- </head>
- <body>
- <?php
- $limit = count($videos);
- foreach($videos as $key => $video){
- ?><span class="k8r_modalCaller" mpx="<?= $video->getMp4Video(); ?>" ogv="<?= $video->getOgvVideo(); ?>">Video Bringer <?= $key ?></span><br/><?php
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement