Welcome Guest, Not a member yet? Register   Sign In
PROBLEM WHEN FLV FILE IS BEING LOADED USING PHP(Codeigniter view)
#1

[eluser]pincs[/eluser]
I got alot of issue on the player when i use a php file to display the flv movie. Here is the sample code on it.

Code:
&lt; script type="text/javascript" src="/mediaplayer2/swfobject.js"&gt; < /script >
    &lt; script &gt;
        var s1 = new SWFObject("player.swf","ply","328","200","9","#FFFFFF");
        s1.addParam("allowfullscreen","true");
        s1.addParam("allowscriptaccess","always");
        s1.addParam("flashvars","file=video.flv&image=preview.jpg");
        s1.write("container");
     < /script >



my ci controller and view code

Code:
&lt;!--flv controller code--&gt;
flv.php
function playflv(){

$this->load->view("playview");

}
&lt;!--flv view code--&gt;
playview.php
&lt;html&gt;
&lt;head&gt;&lt;title>demo&lt;/title&gt;&lt;/head>
&lt;body&gt;
&lt; script type="text/javascript" src="/mediaplayer2/swfobject.js"&gt; < /script >
   &lt; script &gt;
        var s1 = new SWFObject("player.swf","ply","328","200","9","#FFFFFF");
        s1.addParam("allowfullscreen","true");
        s1.addParam("allowscriptaccess","always");
        s1.addParam("flashvars","file=video.flv&image=preview.jpg");
        s1.write("container");
    < /script >

&lt;/body&gt;
&lt;/html&gt;

Like the above code, when I visit http://localhost/index.php/flv/playflv
I do not see anything, I do not know why

The issues I'm having with it are:

1. Auto start doesn't work
2. Any kind of code or flashvars I add at the end of the flvfilevars it doesn't work
3. The buffer image shows automically that it is done buffering.

Please let me know any solutions on how i can fixed this issue.

Thanks in advance.

I also want to know http://www.jeroenwijering.com/?item=JW_FLV_Media_Player Web site to download the player, contained in documents flv is compressed, and when I opened directly when no video, only to hear the voice of And when I open the page through time to see the video


Messages In This Thread
PROBLEM WHEN FLV FILE IS BEING LOADED USING PHP(Codeigniter view) - by El Forum - 09-20-2008, 06:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB