Welcome Guest, Not a member yet? Register   Sign In
Video Wrapper
#1

[eluser]Aishwarya.M.B[/eluser]
I'm developing a video wrapper library for codeigniter.
hope it will be very useful for the "codeigniter" users..
but i need some suggestions for this.
my idea is below


Codeigniter-Video Wrapper

The "Embedded Video" is a library for CodeIgniter (a PHP framework) intended to embed video and its associated information from various video service providers into application being developed using CodeIgniter. It will provide following functionality

1. to generate HTML necessary to display videos.
2. to get the thumbnails of a video from various video providers.
3. to get the addition information about video like users who created the video, date of creation, hit rate etc.
4. will be able to customize to suit application need like video height, width, color, border etc.
5. Will have options to communicate with API's provided by Video Service provider.

This library will work with following video service providers YouTube*, Google, Blip.TV, Revver, MySpace, MetaCafe, Last.fm, JumpCut, SevenLoad, Spike TV, Daily Motion, Veoh, Vimeo, Tudou, imeem, Guba, Yahoo Mu
sic Video, and Live Video video formats.


Usage
-----
$this->embedded_video->load_
by_url('http://www.youtube.com/watch?v=28G9aAnA2RI', $options);
// function takes url and generate html to embed the videos

$this->embedded_video->load_by_provider('youtube', '28G9aAnA2RI', $options);
// function load the video by provider name and video ID

$this->embedded_video->load_thumbnail('http://www.youtube.com/watch?v=28G9aAnA2RI', $option);
// this will get the thumbail of the video




so friends and the developers, just suggest me some ideas...
#2

[eluser]hykoh[/eluser]
thats exactly what i need .. are you already finished this project ?
#3

[eluser]Aishwarya.M.B[/eluser]
ya i've started developing... But i havent completed. You can download the partial code from http://gitorious.org/codeigniter-video-w...ees/master at the right hand side, u will find the download link..

The project page is http://gitorious.org/codeigniter-video-wrapper/

This is my final year project.
#4

[eluser]Berserk[/eluser]
i'm using in my small project (http://drimr.com), hope it'll help you Smile
#5

[eluser]Aishwarya.M.B[/eluser]
thank you so much...
i'll have a look...
#6

[eluser]hugle[/eluser]
was looking for something like this quote before Smile
we'll keep reading this post Smile
#7

[eluser]Aishwarya.M.B[/eluser]
my project is listed now in codeigniter directory... just hav a look... http://codeigniterdirectory.com/home/Wor...VN-dev-2E)
#8

[eluser]Muser[/eluser]
Hi I'm really interested with this project.

I will use it for a website where I need to show videos from several providers.

I have added a new provider solution to support Vimeo videos:

to the get_video_html function add this piece of code:

Code:
case 'vimeo':
        include_once('Vimeo.inc');
        $vimeo = new Vimeo();
        $output = $vimeo->vimeo_video_html($url,$options);
        break;

and then create a file called Vimeo.inc inside application/libraries with this content:

Code:
<?php
class Vimeo {

  /*
   * constructor
   */
  function Vimeo() {
  }

  /*
   * @return
   * html to render vimeo videos
   * @url
   * string url to video
   * @options
   * array containing video height, width, autoplay etc
   */
  function vimeo_video_html(&$url, $options = array()) {
    
    // change http://www.vimeo.com/7043990
    // to http://vimeo.com/moogaloop.swf?clip_id=7043990&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=19a3ff&fullscreen=1
    $url = str_replace('http://www.vimeo.com/','',$url);
    $url = "http://vimeo.com/moogaloop.swf?clip_id=$url&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=19a3ff&fullscreen=1";

    $div_id = isset($options['div_id']) ? $options['div_id'] : 'vimeo_video';
    $height = isset($options['height']) ? $options['height'] : '300';
    $width = isset($options['width']) ? $options['width'] : '350';
    $id = isset($options['id']) ? $options['id'] : 'vimeo';
    $fullscreen_value = isset($options['fullscreen']) ? $options['fullscreen'] : "false" ;
    
    $output = <<<FLASH
        <div id="$div_id">
        &lt;object width="$width" height="$height"&gt;
            <param name="allowfullscreen" value="$fullscreen_value" />
            <param name="allowscriptaccess" value="always" />
            <param name="movie" value="$url" />
            &lt;embed
                src="$url"
                type="application/x-shockwave-flash"
                allowfullscreen="$fullscreen_value"
                allowscriptaccess="always"
                width="$width"
                height="$height"&gt;
            &lt;/embed&gt;
        &lt;/object&gt;
FLASH;
    return $output;
  }
}

// end of class Vimeo.inc

Just a comment... I think adding a new provider should be possible without modifying get_video_html function.
#9

[eluser]Aishwarya.M.B[/eluser]
Muser: Thanks, this code will be very useful for me... i've completed the code for youtube, googlevideos and dailymotion..
Now i'm stuck with "yahoovideo" provider...
Can anyone help...?
#10

[eluser]Muser[/eluser]
Thank you too Aishwarya.M.B

In which part of yahoovideo are you stucked?




Theme © iAndrew 2016 - Forum software by © MyBB