Flash对象没有显示在phonegap android中

时间:2013-08-06 12:32:40

标签: android cordova

我已经在手机间隙android中创建了一个应用程序,我有一个屏幕,我想显示一个静态flash obj,所以我把下面的代码放在我的屏幕HTML页面。

<object width="340" height="27" id="_fms" name="_fms" data="http://player.netromedia.com/flowplayer.commercial-3.2.16.swf" type="application/x-shockwave-flash">
   <param name="movie" value="http://player.netromedia.com/flowplayer.commercial-3.2.16.swf" />
   <param name="allowfullscreen" value="true" />
   <param name="allowscriptaccess" value="always" />
   <param name="flashvars" value='config={
  "key":"#@ e334c866df3eabb2176",
   "clip":{
      " autoPlay":true,
      "autoBuffering":true,
      "live":true,
      "debug":true,
      "scaling":"",
      "url":"Biafra002",
      "wmode":" transparent",
      "provider":"netromedia",
      "metaData":false
   },
   "plugins":{
      "log":{
         "level":"debug",
         "filter":"org. flowplayer.*"
      },
      "content":{
         "url":"flowplayer.content-3.2. 8.swf",
         "bottom":25,
         "height":40,
         "backgroundColor":" transparent",
         "backgroundGradient":"none",
         " border":0,
         "textDecoration":"outline",
         "style":{
            "body":{
               " fontSize":14,
               "fontFamily":"Arial",
               "textAlign":"center",
               " color":"#ffffff"
            }
         }
      },
      "controls":{
         "autoHide":false,
         " fullscreen":false
      },
      "netromedia":{
         "url":"flowplayer.rtmp-3.2.3.swf",
         "netConnectionUrl":"rtmp://165. obj.netromedia.net/Biafra002"
      }
   },
   "playlist":[
      {
         "autoPlay":true,
         "autoBuffering":true,
         "live":true,
         "debug":true,
         " scaling":"",
         "url":"Biafra002",
         "wmode":"transparent",
         " provider":"netromedia",
         "metaData":false
      }
   ]
}' />
</object>

1 个答案:

答案 0 :(得分:1)

Android 4.1之后的Android设备不支持Flash,因此您可能需要使用HTML5视频。

如果您在以前版本的Android上进行测试,并且您知道Flash可以使用它们,那么我猜您需要将这些网址添加到白名单中。