3

我已经在 phone gap 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>
4

1 回答 1

1

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

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

于 2013-08-07T17:45:07.657 回答