It started out so well! I got the page designed in no time and everything looked good in all web browsers - EXCEPT Internet Explorer! And unfortunately majority is still using IE...
Anyway, can anyone tell me how to play a flv video (progressive download) in XWD and get it working in Internet Explorer? I tried JW FLV player (it's free and small) but it seems the latest release has issues with IExplorer. Do you know any other flv player that can be used in XWD?
I've just recently used JW FLV Player (latest version) on a website and it works fine in FF and IE. I had a look at your source code and mine, and apart from obvious format/presentation differences, I noticed the line "sX.addParam('flashvars'" differs between yours and mine, you have a stray "&" at the beginning of the url. Also, I remember having difficulty in IE until I prefixed the url to the flv file with "../". You may want to try that.
Your code:
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('index_html_files/player.swf','mpl','480','295','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://85.131.50.136/aktur/index_html_files/janina3.flv&autostart=true');
so.write('player');
</script>
My code:
<p id='preview' style="margin-top: 0px;"><!--The player will show in this paragraph--></p>
<script type='text/javascript' src='video/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('video/player.swf','player','640','360','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=../video/player_long.flv&image=images/vid_background.jpg&stretching=exactfit');
s1.write('preview');
</script>
Last edited by stratocast; 19 March 2009 at 01:54 PM.
Reason: Added more info
Hmm...I did a test with an exported set of files from camtasia and the FLV method they use seems to work fine as a placeholder in XWD for me. In their case, they are using a small "controller.swf" to load up the flv file. The html part of things only has the call to the controller.swf.
I'm not sure what the basis of these files are, but they do work in XWD here, so at least I know it can be done. I'm not sure, however, what is in that compiled controller.swf.
Egg - your suggestion worked pretty well. A few things though:
In IE, after I "close" the video it restarts. The video is not shown but I can hear the audio. How can this be fixed. It works correctly in Firefox, but also Google Chrome start repeating the audio.
Second question, how did you do the player/controller? Did you do it Flash (the skin looks like it)? Is there a simple way of making a player that works for multiple flv-files so I don't need to make a new controller for every flv video?
Hi Paul, yes it was done in Flash. Do you have Flash?
The player was one of a standard set that come with Flash and you chose from when compiling the video. I believe you can skin these if you wish.
As for the IE playback in the attached ammended swf I've reset auto-rewind to false. I had no problem playing it as a standalone in IE7 but perhaps it might be a problem of the placeholder.
Bookmarks