02-14-2011 06:13 PM
Can I use embed tags on a webworks htm page?.
I am testing using Playbook simulator.
The embed src is from a domain(not local)...but I have white listed that domain in the config file.
Is this the simulator or platform?
Thanks in advance
02-14-2011 07:00 PM
What are you trying to embed? If it is audio or video, then it will not currently play in the PlayBook simulator. This is a known issue, and the reason why is due to missing codecs which prevent this type of media from playing. Using the <obect> tag on a live device swill be supportd.
02-15-2011 09:34 AM
I also believe the <embed> tag has been depricated from the HTML spec. You should likely use the <object> tag instead.
02-15-2011 09:44 AM - edited 02-15-2011 09:45 AM
Yes I have used both as below.
<object width="100%" height="100%" id="m1">
<param name="movie" value="http://www.domain.com/abc.swf"/>
<param name="allowScriptAccess" value="always"/>
<param name="allowDomain" value="*"/>
<embed allowDomain="*" name="m1" src="http://www.domain.com/abc.swf" width="100%" height="100% play="false" allowScriptAccess="always"></embed>
Actually I am fine with it not working in the simulator...if someone could confirm on a device.
02-15-2011 10:16 AM
Now my next question may be a little weird...but since i cant see the swf on the simulator here goes
Flash has some api exposed for JS which only works for same domain.
If the swf file is on the internet (I have rights to use it )
would these throw that "cross-domain error" that you would see in a browser when the page has a different domain than the swf?
Thanks a million for your help...
02-15-2011 04:02 PM
I got the flash to work using swfobject (js)....and loads on defer in the simulator.
I can use exposed stuf like
movie.Zoom() as it is not domain restricted.
...but i cannot use movie.Gotoframe() as it only works on same domain.
02-16-2011 07:31 AM
Could you please detail what markup / script you used to get the flash file working in the simulator?
I have tried using swfobject as follows:
Include in the head:
swfobject.embedSWF("http://192.168.205.102/player_mp3_mini.swf", "flash", "200", "20", "9.0.0");
In the body:
<div id="flash"><p>Flash file goes here</p></div>
It does not show the "Flash file goes here" text, so i'm confident swfobject is kicking in, but doesnt show the flash. There is a small placeholder that is noticable against the background that is the right 200x20px, but nothing loads in it.
I have also tried using for the flash file location
"local:///player_mp3_mini.swf" (when including the swf in the root of the webworks app)
Any advice would be great!