0 Replies Latest reply on May 5, 2009 7:43 PM by slykiwi

    Cffile read SWF - how to pass flashvar


      Hi All,


      I am trying to allow customers to embed our video files like youtube using the object embed tag:


      <object width="560" height="340">
      <param name="movie" value="http://www...."></param>
      <embed src="http://www.mysite/123/" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="290"></embed>


      Like youtube I want to record statistics.  To do this I can use a IIS7 url rewrite for the embed src tag which passes the id of the video to my CF8 page which recoreds the view in my database.  I then use CFFILE ACTION READ to return the swf/player object (JWPLAYER):


      <cffile action="read" file="C:\inetpub\wwwroot\........\jwplayer.swf" variable="playerContent" />
      <cfheader name="Content-Type" value="application/x-shockwave-flash" />
      <cfheader name="Content-Length" value="#len(playerContent)#" />


      This works fine and I can see the embeded player object.


      What I cannot figure out how to do is to also pass the flashvar "file" url along with the #playerContent# so JWPLAYER knows which FLV file to play.


      Any ideas out there please?