Hi Roger, and everyone
I am trying to get the JW FLV MEDIA PLAYER 4.0
http://www.jeroenwijering.com/?item=JW_FLV_Playerto play my FLV videos on my gallery page.
The proper java script is shown below:
<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>
This works fine for me on a standard html page when I try it.
Now my problem:
I have created the proper flv mimetype in IIS 7, it looks like
this:
(*.flv / video/x-flv)
and in the config it looks like this:
<mimeType fileExtension=".flv" browserId="default" type="video/x-flv"
allowAddToGallery="true" />
I created a template from the shockwave template in the config
file and entered the flv information like below:
<mediaObject mimeType="video/x-flv">
<browsers>
<browser id="default" htmlOutput=""/>
<browser id="ie" htmlOutput="" />
<browser id="ie5to9mac" htmlOutput="" />
</browsers>
</mediaObject>
Now I just can't figure out how to enter the script into the (htmloutput="")
Like i said this script works fine in a standard html page, but not when I
paste the script in "as-is" to the (htmloutput="")
I just get a (invalid attribute character) error when I try to run the gallery.
this is the error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 69, position 40.
Source Error:
Line 67: <mediaObject mimeType="video/x-flv">
Line 68: <browsers>
Line 69: <browser id="default" htmlOutput="<script type='text/javascript' src='swfobject.js'></script>
Line 70: <script type='text/javascript'>
Line 71: var s1 = new SWFObject('player.swf','player','400','300','9');
Source File: C:\inetpub\wwwroot\GalleryServerPro\config\galleryserverpro.config Line: 69
Any help on the proper htmloutput would be very helpful from anyone.
Thanks.