Galera, finalmente uma lista interessante, e bom estar aqui viu!
So pra compartilhar, se alguem estiver precisando, uma biblioteca que
visualiza videos do youtube, fiz pra um projeto meu esses dias.

Salvar como Youtube.php
<?php if (!defined('BASEPATH')) exit('Acesso negado');

class Youtube {

    function EmbedVideo($videoid,$width = 425,$height = 350) {
        return '<object width="'.$width.'" height="'.$height.'"><param
name="movie" value="http://www.youtube.com/v/'.$videoid.'"></param><param
name="wmode" value="transparent"></param><embed src="
http://www.youtube.com/v/'.$videoid.'" type="application/x-shockwave-flash"
wmode="transparent" width="'.$width.'"
height="'.$height.'"></embed></object>';
    }

    function GetImg($videoid,$imgid = 1) {
        return "http://img.youtube.com/vi/$videoid/$imgid.jpg";;
    }

    function ShowImg($videoid,$imgid = 1,$alt = 'Video screenshot') {
        return "<img src='".$this->GetImg($videoid,$imgid)."' width='96'
height='66' border='0' alt='".$alt."' title='".$alt."' />";
    }

}

?>


Como usar:
             <?
                            $width = 364;
                            $height = 273;

                            //Escrevendo video atraves da Lib Youtube
                            $CI =& get_instance();
                            $CI->load->library('Youtube');
                            echo
$CI->youtube->EmbedVideo($DS_URL,$width,$height);
                            ?>



Falows, precisando ai galera, to por aqui ! :)

-- 
Allan Torres
_______________________________________________
[email protected]
http://www.codeigniter.com.br
http://codeigniter.com.br/mailman/listinfo/lista_codeigniter.com.br

---------------------------
Oportunidade de negócio
http://www.franquiasargohost.net
---------------------------

Responder a