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. ProgressDialog BackGround

Hello All,
  I would like to know the possibilities of changing the background
Image/color of aProgressDialog?

  I already tried it with a class that extends ProgressDialog and
tried to set the background, but it did not do it for the whole
Dialog(Window), only the part that has the Message get painted and not
the Bigger Container(Title+Message).

  Here is the Code Snippet

                                           mDefaultDialog = new
Dialog(mContext);
                
mDefaultDialog.setContentView(R.layout.progress_dialog_background);
                mDefaultDialog.setTitle("Custom Dialog");
                TextView text = (TextView) 
mDefaultDialog.findViewById(R.id.text);
                text.setText("Hello, this is a custom dialog!");

     Layout file

                            <LinearLayout
                                            xmlns:android="http://
schemas.android.com/apk/res/android"
 
android:layout_width="fill_parent"
 
android:layout_height="fill_parent"
 
android:orientation="horizontal"
 
android:background="@drawable/red">
                               <TextView android:id="@+id/text"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:text="Details"
                        android:textColor="#FFF"
                        android:textAppearance="@style/ScreenTitle" />
                           </LinearLayout>


Regards
V. Ramkumar.

-- 

2. About ListView filter

Hi every one,
    i want to know how to filter list view that have an custom
adapter.




Thanks

-- 

3. Use of AIDL Interfaces for IPC with List of AIDL Interface

4. Retrieve "My contact card" data

5. Dynamically obtaining several instance of a view item defined in layout/xml file

6. MapView displays pages different than launching via ACTION_VIEW

7. how to delete groups in android 2.1