Re: [SWFObject] Flash video won't display

244 views
Skip to first unread message

Sam Sherlock

unread,
Aug 13, 2012, 9:42:35 PM8/13/12
to swfo...@googlegroups.com
use firebug or some other tool that shows http requests

check the requested url and compare with the actual location to the f4v

hth  - S




On 13 August 2012 20:14, stevex64 <stev...@gmail.com> wrote:
I just found swfobject today. My company has used AC_FL_RunContent exclusively in the past and I'd like to upgrade us to swfobject. We play .f4v files in aspx pages and pass in variables, like a user's name, which displays as text in the video, and the video file to display in the flv, like myvid.f4v. I've been googling and reading this group for hours this morning, but have found no solution to my problem. It looks like the .swf is getting loaded, but the .f4v file is not. Here is my simple test code:

<html>
<head>
		<script type="text/javascript" src="js/swfobject.js"></script>
		<script type="text/javascript">
		    var flashvars = {};
			flashvars.src = "hc.f4v";
			flashvars.file = "hc.f4v";
			flashvars.s_video = "hc.f4v";
			flashvars.poster = "imgs/vidBack.jpg";
			var params = {};
			params.base = ".";
			var attributes = {};
			swfobject.embedSWF("hc.swf""videoDiv""768""432""10.0.0"false, flashvars, params, attributes);
		</script>
		<style type="text/css">#wrapper {margin:24px autowidth:768pxtext-align:center;} html {background:#2d2d2dh1{color:#ccch1 {font-size:1.5em</style>
	</head>
	<body>
	<div id="wrapper">
		<h1 style="text-align:centerfont-familyArial, Helvetica, sans-serif;"></h1>
		<div id="videoDiv">
			<video controls="controls" poster="" width="768" height="432">
				<source src="hc.f4v" type="video/mp4" />
				<source src="" type="video/ogg" />
			</video>
		</div>
	</div>
	</body>
</html>

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/RnspILCwi5gJ.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.

Reply all
Reply to author
Forward
0 new messages