Embed flash stream for android web browser -
i have been scratching head several days on issue. attempting embed flash stream own3d.tv in html page view-able in android web browser. no matter flash object goes white several seconds after page loads. have tried copying exact code using swfobject have had no luck. more confusing part able view same stream on homepage fine. (own3d.tv). here details:
what using:
- android 4.0.1 on google galaxy nexus
- swfobject 2.0
- flash 11
- always use stream id online
the code:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <style type="text/css"> * { margin: 0; padding: 0; } body { text-align: center; } html, body { height: 100%, width: 100%; } </style> <script> $(document).ready(function(){ var flashvars = {}; var params = { allowscriptaccess : "always", allowfullscreen : "true", wmode : "transparent" }; var attributes = {}; swfobject.embedswf("http://www.own3d.tv/livestream/34046;autoplay=true", "player", "400", "300", "11.0.0","expressinstall.swf", flashvars, params, attributes); }); </script> </head> <body> <div id="player" style="visibility: hidden;"></div> </body> </html>
Comments
Post a Comment