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 883245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:33:21+00:00 2026-05-15T12:33:21+00:00

I am working on Android (with Eclipse and SDK) trying to stream video into

  • 0

I am working on Android (with Eclipse and SDK) trying to stream video into a VideoView. Sometimes the video works, but other times I get an error that the video cannot be displayed. Here is the code:

//video

    private Uri mPath;

private VideoView mVid;

    mPath = Uri.parse("android.resource://com.accuweather.wordweather/" + R.raw.b2);

    mVid.setVideoURI(mPath);

    mVid.requestFocus();

    mVid.start();

And another class that loads different videos when a user scrolls the screen.

public void onScrollViewSnap(int page) {
    //change video
    Log.d(DEB_TAG, "In 'onPageCountChange: '." + page);
    //video

    if(page != mOnPage){
        if(page == 0){
            mPath = Uri.parse("http://www.ted.com/talks/download/video/8584/talk/761");
            //mPath = Uri.parse("android.resource://com.accuweather.wordweather/" + R.raw.w2);
        }else if(page == 1){
            mPath = Uri.parse("android.resource://com.accuweather.wordweather/" + R.raw.b1);
        }else if(page == 2){
            mPath = Uri.parse("http://commonsware.com/misc/test2.3gp");
            //mPath = Uri.parse("android.resource://com.accuweather.wordweather/" + R.raw.test2);
        }
        if(mVid.isPlaying() == true){
            mVid.stopPlayback();
        }
        mVid.setVideoURI(mPath);
        mVid.requestFocus();
        mVid.start();
        Log.d(DEB_TAG, "THIS IS THE HEIGHT: " + mVid.getMeasuredHeight());
        Log.d(DEB_TAG, "THIS IS THE WIDTH: " + mVid.getMeasuredWidth());
    }

    ImageView temp = null;

    switch(page){
    case 0:
        temp = (ImageView) findViewById(R.id.scroll_page_1);
        mOnPage = 0;
        break;
    case 1:
        temp = (ImageView) findViewById(R.id.scroll_page_2);
        mOnPage = 1;
        break;
    case 2:
        temp = (ImageView) findViewById(R.id.scroll_page_3);
        mOnPage = 2;
        break;
    }

    // Change pagination image
    mPageSelected.setImageResource(R.drawable.scrollview_page_off);
    temp.setImageResource(R.drawable.scrollview_page_on);
    mPageSelected = temp;

}

First, does loading my video this way ensure that it will be displayed alike on each different device?
Second, any idea why a video will start to play and then kick an error of video not able to play?
Here is what I get in LogCat when video starts but locks up.

07-01 13:27:05.594: WARN/PlayerDriver(30): Using generic video MIO
07-01 13:27:22.324: WARN/PlayerDriver(30): Video track fell behind
07-01 13:27:22.324: ERROR/MediaPlayer(409): error (1, 48)
07-01 13:27:22.324: ERROR/MediaPlayer(409): Error (1,48)
07-01 13:27:22.324: DEBUG/VideoView(409): Error: 1,48
  • 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-15T12:33:22+00:00Added an answer on May 15, 2026 at 12:33 pm

    Video playback on emulator is not very stable. You should test and develop on at least one real device if you’re working with video a lot. It’s a common issue.

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

Sidebar

Ask A Question

Stats

  • Questions 465k
  • Answers 465k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Frankly, I don't know what you're doing, since you haven't… May 16, 2026 at 1:26 am
  • Editorial Team
    Editorial Team added an answer Rails3 has already been released. Using it in production now.… May 16, 2026 at 1:26 am
  • Editorial Team
    Editorial Team added an answer The only way your repository will be generic enough to… May 16, 2026 at 1:26 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.