Flash video player doesn't play after rewriting a url

Posted by Joel on Stack Overflow See other posts from Stack Overflow or by Joel
Published on 2009-07-29T05:46:07Z Indexed on 2010/04/13 3:02 UTC
Read the original article Hit count: 438

Filed under:
|
|

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

if you then follow the link on the menu and go to Campaigns > It's a Living Thing you can see how it's not working when the url is being re-written.

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;autoPlay=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;autoPlay=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.

© Stack Overflow or respective owner

Related posts about flash

Related posts about url-rewriting