1. Download our Official Android App: Forums for Android!

How to play flv videos on emulator

Discussion in 'Android Lounge' started by nativeuser, Apr 6, 2011.

  1. nativeuser

    nativeuser Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 6, 2011

    Apr 6, 2011
    1
    0
    5
    Hi,

    I want to play flv videos on the android emulator. I want to stream it online.

    I tried the following code and i was to see the video container but when i press play button , neither it streams the video nor does it play.

    WebView webview;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    webview = (WebView) findViewById(R.id.webview);
    webview.getSettings().setJavaScriptEnabled(true);
    // webview.loadUrl("http://www.expotv.com/video/embed/337382/fb1f790e83c3472e2089d09c2487726d&ratio=16:9&width=220&height=149&similar=null&key=fb1f790e83c3472e2089d09c2487726d&refURL=undefined");
    ...

    I'm able to play the video on the android handset.

    Can some body please help me out on how to get it working on emulator?

    Thanks,
    - Nat.
     

    Advertisement

Share This Page

Loading...