Error on Http Video Streaming: Prepare Fail

by fortold » Mon, 13 Apr 2009 12:13:33 GMT


Sponsored Links
 Did anyone try API demos on the SDK?

I have a problem with playing http stream video on the emulator. I use
the MediaPlayerDemo_Video class in "android-sdk-windows-1.1_r1\samples
\ApiDemos\src\com\example\android\apis\media"

I change the path to some  http://foo.com/bar.3gp but all I get is 
Prepare failed: status=0xffffffff which does not mean anyhing for me.

Since I am just using the example provided by the SDK itself, I count
the code as a correct one.

But 2 questions:

1- Does the emulator can play video?
2- If it does which extensions and are there any other restrictions

Any comment or suggestion appreciated.

Thanks in advance,
fortold

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Gallery not Recycling Views

I am using the Hello Gallery code as an example. Views are not being
recycled as I scroll left and right.

I added log output at the getView method, and I get a constant output
of null. Anyone know the reason why?

Here is the code:

public class HelloGallery extends Activity {

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);


            Gallery g = new Gallery(this);
            g.setAdapter(new ImageAdapter(this));

            setContentView(g);
        }

        public class ImageAdapter extends BaseAdapter {
            int mGalleryItemBackground;
            private Context mContext;

            private Integer[] mImageIds = {
                    R.drawable.sample_1,
                    R.drawable.sample_2,
                    R.drawable.sample_3,
                    R.drawable.sample_4,
                    R.drawable.sample_5,
                    R.drawable.sample_6,
                    R.drawable.sample_7
            };

            public ImageAdapter(Context c) {
                mContext = c;

            }

            public int getCount() {
                return mImageIds.length;
            }

            public Object getItem(int position) {
                return position;
            }

            public long getItemId(int position) {
                return position;
            }

            public View getView(int position, View convertView, ViewGroup
parent) {
                System.out.println(convertView); //should occasionally not be
null
                ImageView i = new ImageView(mContext);

                i.setImageResource(mImageIds[position]);
                i.setLayoutParams(new Gallery.LayoutParams(150, 100));
                i.setScaleType(ImageView.ScaleType.FIT_XY);
                i.setBackgroundResource(mGalleryItemBackground);

                return i;


            }
        }

Thanks,
Aamir

-- 

2. Example "Tab Layout" wont work in "http://developer.android.com/resources/tutorials/views/hello-tabwidget.html"

Hi Guys!!

I'm new in android and also in java. This is my second day in work
learning android and java. Yesterday i successfully installed android
using eclipse. I tried the sample "Tab Layout" posted in "http://
developer.android.com/resources/tutorials/views/hello-tabwidget.html".
I had done exactly what is written for me to do. I was able it to run
in my eclipse but when my emulator loads it pops an error saying
"application sample tab has stopped unexpectedly. Please try again".
Ive tried debugging it using the eclipse de{*filter*}, it shows an error
which i don't understand, showing a tree explorer of its errors. Hope
i could attached the screen shots of the errors.

If someone of you guys has a sample of table layout, can you please
send it to my email address.

Thanks,

"don't worry about a thing, coz every little thing i gonna be alright"
- bob marley

-- 

3. Possible to have private authtoken stored for Account which has been created via AccountManager?

4. Browser is not working in Eclaire android

5. Notepad Tutorial, Error just after imported the project

6. AGPS APIs in Android 2.1

7. How to get the history cache of android default browser