Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

sample html page using JW Player / RTMP streaming


can anyone please provide a sample web page (html code) that is layed our correctly based on a working code piece I pulled form the JW Setup Wizard page?

Here is the working code (with actual file names pulled and distribution modified). For the life of me I can't figure out how to create a basic web page which will display this video setup in a window size of my choosing (such a newbie to html design!)

thanks in advance!!

<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','650','450','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','test.f4v');
so.addVariable('streamer','rtmp://s12558cvgdfz38rvc.cloudfront.net/cfx/st/mp4:test.f4v');
so.write('mediaspace');
</script>

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

We have a sample right here :) – http://www.longtailvideo.com/support/jw-player-setup-wizard?example=204

JW Player

User  
0 rated :

Hi Ethan and thanks for the reply. I do have that sample (included above) but I'm having an issue of where to enter it and any support code in a basic web page. I'm simply trying to have the video open in a window just as it is in the JW setup example above.

My issue is I can't figure out "where" in a basic web page that code would be entered (e.g. head, body etc.)

pretty trivial but causing me issues.

thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Your issue is:

so.addVariable(‘file’,‘test.f4v’);
so.addVariable(‘streamer’,‘rtmp://s12558cvgdfz38rvc.cloudfront.net/cfx/st/mp4:test.f4v’);

You are listing the full path to the f4v file as the streamer, but it should just be the location of the streaming server.

You also need to set the provider flashvar to rtmp

More information – http://www.longtailvideo.com/support/jw-player/18/rtmp-streaming-with-the-jw-player

This question has received the maximum number of answers.