Welcome Guest Search | Active Topics | Members | Log In | Register
JW FLV MEDIA PLAYER 4.0 Options
echris
Posted: Saturday, August 16, 2008 1:30:56 PM
Rank: Member

Joined: 8/14/2008
Posts: 12
Location: Spokane,WA
Hi Roger, and everyone

I am trying to get the JW FLV MEDIA PLAYER 4.0
http://www.jeroenwijering.com/?item=JW_FLV_Player
to 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.


Roger Martin
Posted: Monday, August 18, 2008 9:19:39 AM
Rank: Administration

Joined: 8/3/2007
Posts: 763
Location: Fort Atkinson, WI
As you posted here, I see you got this working. Great job, and thanks for sharing.


Roger Martin
Lead Developer for Gallery Server Pro
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.