Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6815177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:46:34+00:00 2026-05-26T20:46:34+00:00

I want to put a web into webview.These is a video in the web.The

  • 0

I want to put a web into webview.These is a video in the web.The video’s format is wmv.I put the web in the android project “assets” file.Now I can scan the web,but the video can’t play.This is the code on below.Who can help me?Thanks.

public class WebViewActivity extends Activity {
    private WebView webview;
    private WebSettings webSettings;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        webview = (WebView) findViewById(R.id.webView);
        webSettings = webview.getSettings();

        webSettings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS);
        webSettings.setBuiltInZoomControls(true);

        webview.getSettings().setJavaScriptEnabled(true);
        webview.getSettings().setPluginState(PluginState.ON);
        webview.getSettings().setPluginsEnabled(true);
        webview.loadUrl("file:///android_asset/demo/html/demo.html");
        webview.setWebViewClient(new MyWebClient());

    }

    private class MyWebClient extends WebViewClient {

        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }

    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:46:35+00:00Added an answer on May 26, 2026 at 8:46 pm

    WMV is a proprietary Microsoft video format. Chances are Android doesn’t have a codec for it. You should convert it to something standard e.g H264.

    Unfortunately video encoding is a minefield of proprietary tech. There are a few open source converters available. FFMPEG is probably the most extensive. There’s a handy GUI for this called WinFF (if you’re using windows).

    You can test your HTML file by putting it and your video onto the SDcard and see if it works in it’s simplest form. Try with different video formats as a sanity check.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Straight from the w3schools web site, why would I want to put these items
I've made a small web app using web.py that I now want to put
I want to put an encrypted license list on the web, so that valid
I have a Asp.net MVC web application, containing mostly text. I want to put
I'm trying to put together a contract-first web application using Spring-WS. I want to
I want put a button on android edittextpreference. I create a custom editextpreference: public
hey, hi i want put limit on object creation means a class can have
I am using HttpWebRequest to put a remote web page into a String and
I want to put some sort of hook into windows (only has to work
I want to place the RSS Viewer web part into a page layout I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.