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

  • SEARCH
  • Home
  • 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 7916981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:59:37+00:00 2026-06-03T14:59:37+00:00

I am in big trouble, I could not play m3u8 file in my android

  • 0

I am in big trouble, I could not play m3u8 file in my android videoview but it is so easy in iPhone. I googled and visited several forums and all are saying that it is not possible. But I tried vitamio(http://vov.io/vitamio/) and it can stream for 5 to 6 seconds. That is there is a chance to stream, but how ?

If the m3u8 streaming in android is hard, How can stream from an IPcamera to my android device?

If any one know about this, Please give a response, I am very thankful for your response because i spend much more time for this.

  • 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-06-03T14:59:37+00:00Added an answer on June 3, 2026 at 2:59 pm

    I had tried the devices having Android versions 2.1,2.2,2.3,2.3.6,and 4.0.
    The vitamio application can stream the url for 5 to 6 seconds in all devices except the device HTC onex having android version 4.0.

    My code for calling simple m3u8 url is given below..
    Many thanks yorkw.

    Activity:

           package com.livestrean;
    
    import android.app.Activity;
    import android.content.Intent;
    import android.net.Uri;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.MediaController;
    import android.widget.Toast;
    import android.widget.VideoView;
    
    public class streamplayer extends Activity {
        /** Called when the activity is first created. */
    
    
         private String path = "An m3u8 Url";
    
    
         private VideoView mVideoView;
    
    
    
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
    
            try
            {
                setContentView(R.layout.surface_view_1);
                mVideoView = (VideoView) findViewById(R.id.surface_view);
    
                    mVideoView.setVideoURI(Uri.parse(path));                
                    mVideoView.setMediaController(new MediaController(this));
                    mVideoView.requestFocus();              
                    mVideoView.postInvalidateDelayed(100);        
                    mVideoView.start();
    
    
    
            }catch (Exception e) {
    
                Toast.makeText(streamplayer.this,"Error Occured:- " + e.getMessage(),Toast.LENGTH_SHORT).show();
            } 
        }
    }
    

    Layout:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    
        <VideoView 
            android:id="@+id/surface_view" 
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center"/>
    
    </LinearLayout>
    

    Thanks

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

Sidebar

Related Questions

I have big trouble with file uploads with php. My own tests are successful
There is a big design flaw here, but I'm having trouble solving it: The
I have got a big trouble in my Xml generator using C#. I could
I am a big fan of Dependency Injection and the Play Framework, but am
I am in a big trouble with the Ankh plug in for visual studio
I have a very big hadoop sequence file in the hdfs. what is the
I have a big makefile that I have configured with several phony targets. One
I have a large binary file to parse, and i am not sure about
I've got quite big trouble, because i need to anathematise from styling some input
Could you please lend a hand as I am having some trouble getting the

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.