Welcome Guest, Not a member yet? Register   Sign In
NEED HELP ? FLV PLAYER
#1

[eluser]Zeeshan Rasool[/eluser]
Guys , i have problem wid this code. In $path i have vodeo file path that is ‘test.flv’
and this file is uploaded in ‘public/images/’ folder. User clicks on a link, a video id is passed and using this id i get the file name i-e ‘test.flv’.Now, i pass it but
‘public/images/’.$path does’nt work
but if i use
‘public/images/test.flv’
it works.
I want that the file name shud b come from DB
..... Any one Know?
Passing
<?
foreach($query as $item)
{
$path=$item->video_path;
}
echo $this->flvplayer->rendervideo('public/images/'.$path , 'public/images/sunset.jpg', '350', '250');

?>
#2

[eluser]Yash[/eluser]
My FLV player complete code
Code:
<?php
//$row=$query->row();
//echo $row->content;
$nextpage=$this->uri->segment(4);
$r=$this->uri->segment(3);
if(empty($r))
{
    echo "blank";exit;
}
$uurl= base_url();
foreach ($query->result() as $row)
{
    
    $vidurl=$uurl."uploads/";
    
    $name=stripslashes($row->name);
    $fname=stripslashes($row->filename);
    $abt=stripslashes($row->about);
    $vid=stripslashes($row->vid);
    
    $vidnext=$vid+1;
    $vidprev=$vid-1;


    $ffname = explode("|", $fname);
    $asize=sizeof($ffname);
  
}?>
<div id="player"></div>
                                         &lt;?php
                                //echo "&nbsp;|&nbsp;";
                                for($i=0;$i<$asize;$i++)
                           echo "<a href=\"[removed]playMovie('".base_url()."uploads/".$ffname[$i]."')\" class=\"alt\">".$ffname[$i];
                                
                                ?&gt;                                    
                                function playMovie(file) {
                                    var FO = {     movie:"&lt;?=base_url(); ?&gt;js/flvplayer.swf",
                                                width:"300px",
                                                height:"250px",
                                                majorversion:"7",
                                                build:"0",
                                                flashvars:"file="+file+"&autoStart=true" };
                                    UFO.create(FO, 'player');
                                }
                                playMovie('&lt;?=base_url(); ?&gt;uploads/&lt;?=$ffname[0]?&gt;');
#3

[eluser]Yash[/eluser]
FLV Player was
http://www.jeroenwijering.com/?item=JW_FLV_Player

for non commercial ...




Theme © iAndrew 2016 - Forum software by © MyBB