[eluser]saad06[/eluser]
I am having problem in making the flv player auto play can anyone help me here is my code
Code:
$output .= "\n" . '<div id="container' . $videoid . '"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
' . "\n";
$output .= "\n" . '[removed][removed]' . "\n";
$output .= '[removed]' . "\n";
$output .= 'var s' . $videoid . ' = new SWFObject("' . $site_url . 'public/app/mediaplayer.swf","mediaplayer' . $videoid . '","' . $width . '","' . $height . '","7");' . "\n";
$output .= 's' . $videoid . '.addParam("allowfullscreen","true");' . "\n";
$output .= 's' . $videoid . '.addParam("autorun","true");' . "\n";//parameter for autoplay
$output .= 's' . $videoid . '.addVariable("width","' . $width . '");' . "\n";
$output .= 's' . $videoid . '.addVariable("height","' . $height . '");' . "\n";
$output .= 's' . $videoid . '.addVariable("file","' . $site_url .'' . $video . '");' . "\n";
//$output .= 's' . $videoid . '.addVariable("image","' . $site_url .'' . $picture . '");' . "\n";
$output .= 's' . $videoid . '.write("container' . $videoid . '");' . "\n";
$output .= '[removed]' . "\n";