paths to video in URL not working

Playlist, player skins, playback, controlbar

paths to video in URL not working

Postby derek on Tue Nov 03, 2009 6:09 am

Hi, this is my directory structure:

The website root is c:\webroot.
SWF player is here: c:\webroot\vidtest\mwplayer.swf

Videos are here
c:\webroot\vidtest\vid1.flv
c:\webroot\vidtest\video\vid2.flv

There are no problems when using flashvars for either video:

This works:
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','playerOpts=playListPath*^^vid1.flv*s');
so.write('flashcontent');

So does this:

...
so.addParam('flashvars','playerOpts=playListPath*^^video/vid2.flv*s');
...


However, I'm having problems with specifying everything in the src when the video is in a different folder.

This works:

src=mwplayer.swf?playerOpts=playListPath*^^vid1.flv*s

None of these work:

src=mwplayer.swf?playerOpts=playListPath*^^video/vid2.flv*s
src=mwplayer.swf?playerOpts=playListPath*^^/vidtest/video/vid2.flv*s
src=mwplayer.swf?playerOpts=playListPath*^^../vidtest/video/vid2.flv*s



any ideas?

Thanks
derek
 
Posts: 3
Joined: Tue Nov 03, 2009 5:45 am

Re: paths to video in URL not working

Postby derek on Tue Nov 03, 2009 11:26 pm

fixed it, you have to url encode it - replace / with %2F


src=mwplayer.swf?playerOpts=playListPath*^^video%2Fvid2.flv*s
derek
 
Posts: 3
Joined: Tue Nov 03, 2009 5:45 am

Re: paths to video in URL not working

Postby leakeymore on Wed Nov 04, 2009 8:46 am

:) glad you have got it fixed.

Regards,
leakeymore
 
Posts: 247
Joined: Tue Jul 14, 2009 2:12 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron