I'm migrating a personal portfolio website that showcases flash videos.
Everything is working fine except the videos are not playing correctly.
The site embeds a swfobject player to play .f4v flash videos.
The swfobject loads but the videos don't play.
Here is the entire code example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject 2 dynamic publishing example page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function outputStatus(response) {
console.log("response.success = " + response.success +"\nresponse.id = "+ response.id +"\nresponse.ref = "+ response.ref)
}
var flashvars = {
holder: "http://127.0.0.1:8000/media/uploads/stills/XMAS-H264.jpg",
bg: '',
file: "Xmas_instrumental_2.f4v",
autoplay: 'false'
}
var playerId = "myContent";
var params = { wmode: 'transparent' }
swfobject.embedSWF('player_12.swf', playerId, '960', '540', '10.0.0', 'expressInstall.swf', flashvars, params, null, outputStatus);
</script>
</head>
<body>
<div id="myContent">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>
The console response I get in the outputStatus function is:
response.success = true
response.id = myContent
response.ref = [object HTMLObjectElement]
Which seems to indicated that the flash player is loading, but just unable to play the videos.
Is this an issue with the 'player_12.swf' object I'm trying to use to play the videos?
How can I properly diagnose what's wrong? How can I get this to work properly?
This question [play FLV video in a SWF object ] suggests that I need to either go with a 3rd party hosted solution (this is not an option) or to build a SWF that can play the videos.
Given the answer is a few years old, I want to see if there's a better current solution (or a good swf tutorial recommendation).
Thanks for your help!