redirect to MIME inside embed tag
-
Tuesday, October 09, 2007 9:35 AMHi I have posted this question before bust no replies..so posting it again..
I am having difficulty to embed a .swf inside IE. The src inside the embed tag does't end with .swf but it sends the request to the server which redirects you to the .swf .. this works fine inside firefox .. any tips on this implementation
All Replies
-
Tuesday, October 09, 2007 8:53 PMModerator
Hm. You didn't provide any example source, so it's hard to say anything specific; however, there is an article over at A List Apart that you may find interesting.
Hope this helps...
-- Lance
-
Wednesday, October 10, 2007 3:32 PMThanx for the reply here is the example of wat I am trying to do
<object width="425" height="350"><param name="movie" value="http://localhost:8080/vts/v/video?listingId=100001"></param><param name="wmode" value="transparent"></param>
<param name=allowScriptAccess value="always"></param><embed src="http://localhost:8080/vts/v/video?listingId=100001" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" allowScriptAccess="always"></embed></object>
http://localhost:8080/vts/v/video?listingId=100001
this will redirect to
http://video-int.superpages.com/player/test.swf?videoId=100001
but the .swf player is not getting the input parameter videoId=100001 .. I was thinking it has to do with the HTTP response that is sent after redirect and its bloacking the request query string.. because this works fine in FF -
Wednesday, October 10, 2007 3:44 PMModerator
If you're using a strict doctype in your page, you may being tripped up by one of the params in your object tag. Specifically,
<param name=allowScriptAccess value="always">
Should be
<param name="allowScriptAccess" value="always">
If that doesn't resolve the issue (it may not), you may find this article from Adobe helpful. It looks like the section that discusses flashvars may help.
Hope it does...
-- Lance
-
Wednesday, October 10, 2007 3:57 PMAgain thanks for the reply..I just put some logs in my action script and here what I got
original src inside embed
http://localhost:8080/vts/v/video?listingId=123
server redirect to
http://localhost:8080/vts/test.swf?videoId=xyz
but in flash player actually got
http://localhost:8080/vts/test.swf?listingId=123 -
Saturday, March 08, 2008 2:51 PMHi!!!
I had the same problem. I searched on google for one week!
Also I analyzed youtube and dailymotion.
The solution was simple!
You can use this:
http://localhost:8080/vts/v/listingid-123
and redirect to:
http://localhost:8080/vts/test.swf?videoId=123
Flash Player will see _root.videoId!
In practice, in the first call it does not have to be "?"
For handle directory listing you can use:
http://www.codeproject.com/KB/aspnet/handledirectory.aspx -
Tuesday, May 20, 2008 9:07 AMAlwaysHC is correct.
To clarify: Under Internet Explorer and Flash, if you use a URL in embed src="http://server/path?query=param", and that URL redirects to the actual Flash movie, with flash vars as query parameters (e.g. http://server/mediaplayer.swf?file=1.sfv), the Flash will not get the flashvars in the target URL (file=1.sfv) but instead the parameters from the first URL (query=param).
In my opinion, this is to be considered a bug. I don't yet know whether it relates to flash only or all Active X content. Anyway, the workaround is to provide the parameters in some way other than in the querystring, appended to the path for instance: http://server/path/param
This was a tough one since it's so hard to Google for it - I searched for "embed flash redirect ie query string" and after a long while, I found this thread.


