Flash 播放器在尝试进入全屏模式时崩溃 android 4.0 [英] flash player crashes when trying to enter fullscreen mode android 4.0
问题描述
所以我创建了一个 Android 应用程序,可以播放来自 blip.tv 和其他各种支持 Flash 的网站的视频.我使用 Webview
来显示视频.这是我的代码:
So I've created an android app that plays video from blip.tv and various other flash-enabled websites. I use a Webview
to display the video. Here is my code:
try{
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
view = new WebView(this);
view.getSettings().setPluginsEnabled(true);
view.getSettings().setPluginState(WebSettings.PluginState.ON);
view.getSettings().setJavaScriptEnabled(true);
view.getSettings().setLoadWithOverviewMode(true);
view.getSettings().setUseWideViewPort(true);
view.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
view.setScrollbarFadingEnabled(true);
// get the html code
String html = getIntent().getStringExtra("VIDEO_CONTENT");
view.loadData(html, "text/html", null);
setContentView(view);
}
catch(Exception e){
}
问题出在 android 4(冰淇淋三明治)上.当我尝试将应用程序置于全屏模式时,应用程序崩溃.但是,该应用程序不会在 android 2.3 或 3.0 上崩溃.有什么想法可以解决这个问题吗?
The problem is with android 4 (Ice Cream Sandwich). When I try to put the app into full screen mode, the app crashes. The app does NOT crash on android 2.3 or 3.0 however. Any ideas to fix this?
推荐答案
好的,所以我认为这是一个 android 4.0.2/flash player 问题,因为其他应用程序如 browser
和 当 flash 进入全屏模式时,dolphin mini
崩溃.
Okay, so I think this is an android 4.0.2 / flash player problem, because other apps like browser
and dolphin mini
crash when flash is put into full screen mode.
这篇关于Flash 播放器在尝试进入全屏模式时崩溃 android 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!