Main Menu
  • Welcome to The RPG Maker Resource Kit.

JWPlayer won't play flv files?

Started by Moss., November 06, 2009, 06:56:32 PM

0 Members and 1 Guest are viewing this topic.

Moss.

Isn't that what it's built for?

I have .mov files, and Adobe Media Converter CS4 to convert them to flv's. I tried Flash 7, and Flash 8 versions of the FLV format. Adobe OWNS the FLV format, don't they? So if there's a converter program I'm gonna trust, it should be that one, right? But when I try to play it through firefox, using the JWPlayer, it says "video not found or access denied."

My JWPlayer works for all my mp3 files, so I don't think it's the code I'm messing up.

...so what am I missing, here?

<p style="margin: 2px;" align="center" id='preview7'>Western Soundtrack Video</p>
<script type='text/javascript' src='design/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('design/player.swf','player','480','360','9');
s1.addVariable('type', 'flv');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=content/western.flv');
s1.write('preview7');
</script>


And yes, i checked my file structure.

:tinysmile::tinysmile:

Roph

For type, try video instead of flv.

And FLV is outdated, flash now supports h.264 video and all flavours of AAC audio inside an MP4 container.

It's also better to specify the file's location with an absolute path.

Embedding with no javascript is less complicated also, this is how rmrk's video player works:

<embed src="http://rmrk.net/src/mp3player.swf" width="575" height="324" flashvars="file=http://slyph.org/magsu/m/The%20Little%20Mermaid.mp4&type=video" allowfullscreen="true" allowscriptaccess="always" />
[fright]bringing sexy back[/fright]

Moss.

Changed to mp4, AAC 192 kbps audio, NTSC preset for video. Still having the exact same problem.

Tried your code. No change.

I can't use absolute paths because the site is still offline, and I don't want to upload things just yet.

This is really annoying me.

:tinysmile::tinysmile:

Moss.

Nevermind, I got it. For some retarded reason, EVERYTHING has to be in the same folder. The html file, the video, the player, and the script.

:tinysmile::tinysmile: