Flash Player on Android

Source: Internet
Author: User

 

A flash video player is required.

 

The Flash plug-in can be installed only after Android2.2 and the Flash video can be played in WebView. The initial idea is to set a full-screen WebView for the Activity and then input a Flash Address. Later, I found some problems and made it clear.

 

1. directly call webView. loadUrl and input the Flash Address. On my custom machine, a white screen is sometimes displayed (no sound or image ).

 

2. Package the Flash Address into an HTML page, and then call webView. loadData to pass in the page data. This can be run on 2.x, but FrameLayout or RelativeLayout cannot place the logo I want to add in the upper left corner of the screen. Instead, the LOGO is placed under the Flash Player. Finally, we had to add a <br/> line break in front of the embed tag in the HTML page. In addition, it runs normally on 2.3, and the process crashes when it reaches 3.2. So this is not a general solution.

 

3. directly call the system browser and throw the flash Address. This is simple and violent, but it can really throw the problem.

 

Intent intent2 = new Intent (Intent. ACTION_VIEW, Uri. parse (flash_url ));

 

StartActivity (intent2 );

 

In addition, 100% white screen was found before hardware acceleration was enabled, which is much better after it was enabled.

 

Whether it is a program restart or a white screen, it is for a specific machine, the most important thing is to write down several more solutions.

 

Reference URL:

 

There is a difference between embedding an OBJECT element and an EMBED element in Flash in different browsers.

 

Http://www.w3help.org/zh-cn/causes/HO8001

 

Android WebView use: http://www.bkjia.com/kf/201110/108836.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.