4 Replies - 28523 Views - Last Post: 08 April 2009 - 11:34 PM Rate Topic: -----

#1 vrushalim   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 05-February 09

Play .flv files in website

Posted 07 April 2009 - 05:36 AM

I need to play .flv video files in our website. Below is the code.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=6,0,40,0" data="<?php echo $path;?>"
  width="400" height="300"  id="FlowPlayer"
 align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer">
		 <param name="allowScriptAccess" value="sameDomain" />
		 <param name="quality" value="high" />
		 <param name="flashvars" value="config={videoFile: '<?php echo $path;?>'}" />

	   <embed src="<?php echo $path;?>" quality="high" width="400" height="300" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>


But its not working. Please help.

Is This A Good Question/Topic? 0
  • +

Replies To: Play .flv files in website

#2 RPGonzo   User is offline

  • // Note to self: hmphh .... I forgot
  • member icon

Reputation: 151
  • View blog
  • Posts: 954
  • Joined: 16-March 09

Re: Play .flv files in website

Posted 07 April 2009 - 06:09 AM

Im actually working with a flash site for photography at the moment and im using this code

		type="application/x-shockwave-flash" data=""<!-- YOUR SWF FILE PATH HERE -->" 
		width="800px" height="475px">
		<param name="movie" value="<!-- YOUR SWF FILE PATH HERE -->" />

reason i went with this vs yours is that it was W3C compliant .. also you will need

<script type="text/javascript" src="../java/swfobject.js"></script>

in your head section of the html

and the file needed ( because i cant attach it to this post -_- ) i have uploaded to my server and made available here SWFOBJECT.JS

Granted the site is still in need of much progress but if you want to see it and maybe view the source for whatever needs site in progress click here


edit: i did just also realize your trying to embed the flv file directly ... i actually exported to a swf movie format to make this work, never tried it with a flv file :-/

This post has been edited by RPGonzo: 07 April 2009 - 06:12 AM

Was This Post Helpful? 0
  • +
  • -

#3 performancecasttv   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 26
  • Joined: 27-March 09

Re: Play .flv files in website

Posted 07 April 2009 - 03:25 PM

Why are you using Php to make your calls in flash anyway? do you need to pull info from a database. If your just calling the flv why not use xml?

I run tons of flv files on my site i typically do it this way, call your javascript in the head and the flash would go in your body tags

<script language="Javascript" type="text/javascript">
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
			'width', '450',
			'height', '370',
			'src', 'runirv',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'true',
			'id', 'runirv',
			'bgcolor', '#000000',
			'name', 'runirv',
			'menu', 'true',
			'movie', 'runirv',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = 'Alternate HTML content should be placed here.'
			+ 'This content requires the Adobe Flash Player.'
			+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
		document.write(alternateContent);  // insert non-flash content
// -->
	// Provide alternate content for browsers that do not support scripting
	// or for those that have scripting disabled.
       This content requires the Adobe Flash Player.
  	<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>

Was This Post Helpful? 0
  • +
  • -

#4 musya   User is offline

  • D.I.C Lover
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,012
  • Joined: 25-April 07

Re: Play .flv files in website

Posted 07 April 2009 - 09:02 PM

How would you pull it from the xml or organize it in their? never heard of this.
Was This Post Helpful? 0
  • +
  • -

#5 stephenz   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 12
  • Joined: 26-February 09

Re: Play .flv files in website

Posted 08 April 2009 - 11:34 PM

Flash video (FLV) is needed to be exported to a SWF file, then you can embed the SWF file to web page. It is recommended to use SWFObject to embed Flash file to web page using Javascript like this -
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Player will show here</div>
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9');

For more information about SWFObject, check this page.

If it is too technical, you can use this flash video player maker called Moyea Web Player Pro, which is a quick solution to embed Flash to web page and make a custom flash video player for website.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1