Issue with playing audio or video from Remote URL (RTSP/HTTP)

by Mark Murphy » Thu, 05 Nov 2009 00:31:56 GMT

Sponsored Links

At least for HTTP streaming of MP4 content, you need to have your 'moov'
atom before your 'mdat' atom. This may happen automatically when you
create your MP4 files, or you may need to lightly twiddle them (e.g.,
MP4Box -hint on Linux).

vidtry handles HTTP streaming: 

I wrote that in part as a proof of concept for an app I wrote for a
consulting customer. They have a large library of MP4 files which they
needed to touch up for the issue listed above, and playback basically
did not work in the emulator, but it works fine on devices. The vidtry
sample does more than just play back video, and it uses MediaPlayer
rather than VideoView, but hopefully it will help.

You may be interested in viewing the following presentation from the
2009 Google I/O conference: 

Mark Murphy (a Commons Guy)  | 

Android Development Wiki: 


Other Threads

1. droid

received a Droid today. didn't bother opening/using it since i was
hoping for a nexus one. it seems that only droids have been sent out
so far..


2. Alarm manager for multiple pending intent are not working.

Hi all,

In my application i have created pending intent which calls another
activity (after 20mins of alarm off) with the help of alarm manger. It
should happen each time for each new pending intent or when I call
that activity.
But when i create one pending intent and after few mins again create
new pending intent ,then the last one overlap the other previous
pending intents and start specified activity only for ones for the
last pending intent.

I want  that each time i create any pending intent it should start
specified activity after 20 mins of it's alarm off time.How it can be
done ?
here is my code:--

Intent intent = new Intent(getApplicationContext(),AlarmCall.class);


Constants.pendingResultList.put(policyNo2, barcode_no);

                                        PendingIntent pendingIntent =
                                        AlarmManager alarmManager = 

                                long timedely = System.currentTimeMillis() + 

////// Below is the code of ALarmCall.class

manger = (NotificationManager)
                 Notification notification = new
Notification(R.drawable.icon,"Please upload
                 Intent startActivity1 = new Intent();
                        startActivity1.setClass(context, UploadTest.class);
                        startActivity1.putExtra( "PolicyNo4",policyNo3);
                        | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);

                 PendingIntent contentIntent = 
0,startActivity1    ,Intent.FLAG_ACTIVITY_NEW_TASK);
                 notification.setLatestEventInfo(context, "HIV 
Pharmacy","Result of
Id- "+policyNo3,contentIntent);
                 notification.flags = Notification.FLAG_ONLY_ALERT_ONCE |
                 notification.ledARGB = Color.GREEN;
                 notification.ledOnMS = 1000;
                 notification.ledOffMS = 500;
                 notification.defaults = Notification.DEFAULT_SOUND |
                 manger.notify(32, notification);

 Thanks to all.


3. App builds up large Cache

4. tea time

5. Gigabyte gSmart MW702

6. LVL and Settings.Secure.ANDROID_ID - how secure?

7. Android IME: how to show a pop-up dialog?