this page works when requested locally (a flash movie plays), http://localhost:8080/flash.aspx
I also have url routing set up http://localhost:8080/videos/ also directs to http://localhost:8080/flash.aspx
If I have set up the following facebook application settings:
---website---
---facebook integration---
when I request the page: http://apps.facebook.com/my_app - http://localhost:8080/flash.aspx is loaded into the facebook canvas (I can see my testing text), however, the flash movie does not play.
Here is the jquery code I'm using to load the swf on flash.aspx
$(document).ready(function () {
if (swfobject.hasFlashPlayerVersion("6.0.0")) {
var att = { data: "flash/video.swf", width: "385", height: "312" };
var par = { flashvars: "foo=bar" };
var id = "video-container";
swfobject.createSWF(att, par, id);
}
});
Any ideas why the flash movie isn't playing when I request: http://apps.facebook.com/my_app/ but does play as it should when the page is requested locally?
Using an absolute path to the flash file fixed it. http://www.mysite.com/flash/video.swf