Hi,
Do following things:
1. Open IIS Manager on the server
2. Expand the Local Computer Server.
3. Examine the 'Properties' of the local server
4. Select the MIME Types tab.
5. Click the 'New' button and enter the following:
* Associated Extension box: .FLV
* MIME Type box: flv-application/octet-stream
6. Click Ok and restart IIS.
Use this code:
There are a two basic steps when placing Flash application to web page:
- First, declare and initiate a Flash object
- Second, set properties of object according to your needs.
You can do this on two different ways, with static HTML tags <OBJECT > and <EMBED>, or by using a JavaScript. With static HTML your code could look something like this:
<object width="640" height="480">
<param name="movie" value="player.swf" />
<embed src="player.swf" width="640" height="480" />
</embed>
</object>
We need both <object > and <embed > tags to get browser compatibility. Internet Explorer uses <object> tag, but Firefox and Netscape can't see it and recognize just <embed>. We set parameters by using <param > tags, and inside <embed > tag. Code example above have added parameter name "movie" and value "player.swf". You can add any other parameter on the same way. Complete list of supported parameters for JW FLV Player you can see at their Flash vars page.
There is a problem with static HTML if visitors access with Internet Explorer. Flash application would not start until visitor clicks on it. If you just place a cursor over a movie you'll see an ugly border. Common way to avoid need to click every time when page load is to initiate Flash player with JavaScript. JavaScript code for starting Flash movie could look like this:
<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
</script>
bye