Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Long URLS not supported?

9 replies [Last post]

Trying to use jwplayer with a long url and the latest jw player. eg:

<embed type="application/x-shockwave-flash" src="player.swf" style="" id="player" name="player" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="file=http://ia311032.us.archive.org/2/items/kzns.pl/kazanie/2009/2009_04_25_Peter_Gaut_Prophecy.flv&height=425&width=538&largecontrols=false&autostart=true&frontcolor=ffffff&lightcolor=cc9900&skin=/modieus.swf" height="425" width="538">

It complains that http://ia311032.us.archive.org/2/items/kzns.pl/kazanie/ is not found (and indeed it doesn't exist). Why does it not accept the full long url?

There is no file at this URI

http://ia311032.us.archive.org/2/items/kzns.pl/kazanie/2009/2009_04_25_Peter_Gaut_Prophecy.flv

it just returns a 404.

OOo thanks you are a wise man! it should have had f4v at the end and .. now it all works ok thanks. Interesting though that the error message was only wide enough to fit a certain number of characaters on.

latest jwplayer not able to play this url

<script type='text/javascript'>
var s1 = new SWFObject('player-viral.swf','player','300','250','9');
s1.addParam("usefullscreen","false");
s1.addParam("wmode", "transparent");
s1.addParam('allownetworking','all');
s1.addParam('allowscriptaccess','always');
s1.addVariable('menu','false');
s1.addParam('flashvars','&file=http://audiotest.s3.amazonaws.com/Verno-3-3-09.mp3?AWSAccessKeyId=AKIAJKJCOQQ52DMZE2QA&Expires=12885...');
s1.write('preview1');

</script>

 
1) menu is an Adobe Flash Player parameter.

2) There is no Adobe Flash Player parameter usefullscreen. Use allowfullscreen

3) The JW FLV Player is not transparent, so wmode=transparent is not useful. If you want to display HTML
     content overlaid on your Flash content, use wmode=opaque.

4) When you use a URI that contains the flashvars stacking characters ( ? = + ), you must urlencode the URI.
    Adobe's documentation: http://kb2.adobe.com/cps/164/tn_16417.html

Plays for Me™

    <script type='text/javascript'>
      var s1 = new SWFObject('player-viral.swf', 'player', '300', '250', '9.0.124');
          s1.addParam('allowscriptaccess',  'always');
          s1.addParam('allowfullscreen',    'false');
        //s1.addParam('wmode',              'opaque');
          s1.addParam('allownetworking',    'all');
          s1.addParam('menu',               'false');
          s1.addVariable('file',             encodeURIComponent('http://audiotest.s3.amazonaws.com/Verno-3-3-09.mp3?AWSAccessKeyId=AKIAJKJCOQQ52DMZE2QA&Expires=1288531248&Signature=mUFq5By5zPeIT/o%2B8Llpw9KGNXk='));
          s1.addVariable('type',            'sound');
          s1.write('preview1');
    </script>

Plays your MP3 84:12...

Thank you so much hobbs. it's working for me too.

:)

Not having any problems after switching to SWFObject 2 which has encodeURIComponent built in.

the problem cannot be solved using jwplayer at its present version. those who say they got it to work, im mystified.

the URLDecode function in jwplayer is 2 pass, when it should not be.

passing %252B should decode as %2B, NOT +. this means jw is decoding 1st pass to %2B and a second pass to +.

in a desperate attempt to URL encode 3 times (%2525252B), jw returns %252B, which is further evidence of its 2-pass decoding algorithm, which is broken.

save yourselves time and headache. switch to flowplayer. it works just fine, and only single pass URL decodes, solving this issue entirely by simply encoding the + to %2B prior to URLencoding the amazon URI.

Cheers,

Q

There's indeed a bug in the current player having to do with URI encoding. It's set to be fixed in the current batch of bugfixes.

http://developer.longtailvideo.com/trac/ticket/729

This bug ticket has been closed, and the fix will be included in the upcoming 5.3 release. If anyone would like to test out the fix before the official release, the most recent build is available at http://developer.longtailvideo.com/trac/browser/trunk/fl5/player.swf