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:

 http://github.com/commonsguy/vidtry 

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:

 http://code.google.com/events/io/2009/sessions/MasteringAndroidMediaFramework.html 
 http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--



Other Threads

1. the rooted G1 phone == the dev phone == the unlock G1 phone ?

There are 3 different aspects:

-fastboot support in the bootloader: disabled (in theory) in consumer
devices, enabled in ADP1 (restricted to system, boot, recovery, cache
and userdata partitions, I think, i.e. stuff that can be flashed
safely without bricking), enabled in engineering devices with no
restrictions on partitions (i.e. can brick a device).

-root access in the system image. disallowed (in theory) in user
builds (as used in consumer devices), allowed in userdebug builds (as
in the ADP1) and engineering builds.

-SIM locking. US G1s are configured to only work with T-Mobile SIMs
(unless T-Mobile gives you an unlock code). Not sure about other
retail devices. ADP1 and engineering devices can use any SIM.

Notice that the first two aspects are somewhat tied: if you have
fastboot access, you can flash a system that gives you root access,
and if you have root access (and access to the right files) you can
update the bootloader. Personally, I consider the second aspect to be
a weakness.

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How can I attach a zip file in an email

I want to send a mail with a zip file as attachment. I am able to
create zip file and I set the content type as "application/zip". But I
am getting a message saying "No applications can perform this action

Also, When I set the content type as "image/*" . It is opening the
mail compose window with zip file as attachment, but the mail is not
sending.

Pls find below the code I am using,

Intent sendIntent = new Intent(Intent.ACTION_SEND);

String subject = getResources().getString(R.string.emailSubject);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject);

String messageBody = "Body comes here";
sendIntent.putExtra(Intent.EXTRA_TEXT, messageBody);

String filesDirPath = getFilesDir().getAbsolutePath();
Uri uri = Uri.parse("file://"+filesDirPath+"/MYZIPFILE.zip");
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);

sendIntent.setType("application/zip"); //Content Type for zip file as
email Attachment.

startActivity(Intent.createChooser(sendIntent, getText
(R.string.app_name)));


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

3. Video in background mode

4. Bluetooth Voice Dial

5. Error 171 usb connection

6. About Execution of an application in Android

7. Android for Affective Computing