PDA

View Full Version : FLV Player not working after url rewrite


frikenlaser
08-05-2009, 01:36 AM
Hi!

I recently started a new job working on a content management system. One of the jobs was to implement url rewriting, which i've done, but for some reason the URL rewriting has killed the ability to play flv files through FLVPlayer_Progressive. An example can be seen below:

Working (http://www.peachsocial.com.au/sitefiles/PeachSocial/templates/peachsocialcomau_1column.aspx?pID=262&preview=1)

However, going to http://www.peachsocial.com.au/Campaigns/Its_a_Living_Thing breaks the player.

Below is the html for the object tag i'm setting within a gui editor on the admin side, everything on that end works also!

<object height="160" width="284" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="FLVPlayer">
<param name="movie" value="/sitefiles/PeachSocial/flash/FLVPlayer_Progressive.swf">
<param name="salign" value="lt">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;autoP lay=true&amp;autoRewind=true&amp;streamName=/sitefiles/PeachSocial/flash/dept_envrnmnt">
<embed src="/sitefiles/PeachSocial/flash/FLVPlayer_Progressive.swf" flashvars="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;autoP lay=true&amp;autoRewind=true&amp;streamName=/sitefiles/PeachSocial/flash/dept_envrnmnt" quality="high" scale="noscale" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" width="284" height="160">
</object>

I would have thought giving the path the way i am would have taken it back to the server root and gone from there, but it doesn't seem to like it once the url rewriting happens. Anyways i'm outta ideas after a pretty frustrating day of trying to pass the thing absolute urls, relative paths and the like and am hoping a fresh set of eyes may help.

raydowe
08-05-2009, 05:47 PM
I've had problems with this before.

My guess is, when your swf tries to load the video, the path is taken in, and rewritten to something different. After that, there server can't find the video.

hdflvplayer
08-07-2009, 08:25 AM
You have tried to rewrite your url and said not able to play flv player. While buying flv player, they should asked your url. Right? I think that they should have edited code and sold to you. That is why this problem occurred. The solution for your problem is you don't want to rewrite your url or ask seller to don't edit the code to rewrite your url.

Visit my home page and features page.