The following are for the T-Mobile G1, other Android devices will likely have different specs based on their hardware capabilities:
H.264 AVC baseline, H.263, and MPEG4-SP codecs are supported in a 3GPP container file. H.264 AVC is also supported in an MP4 container. The H.264 AVC format is preferred due to support for h/w acceleration. Video size up to 480x320, with video bit rates up to 600K bps average. Make sure you disable b-frames (not supported in baseline). VideoView adjusts the surface size based on the reported aspect ratio from the video. If you want it to fill the display, make sure that the video aspect ratio matches the screen aspect ratio. On Nov 10, 6:42 pm, jean-guys <[EMAIL PROTECTED]> wrote: > Our app has a simple 3 second intro video that plays the first time > the app is launched. So far we've experienced two issues with this. > > The first is that we seem to be limited to H263 video in a 3GP > container at "standard" resolutions (i.e. 352x288). H264 video > doesn't play at all in a 3GP container. Is there a published list of > supported video codec and container combinations? > > The second is that we can't get the VideoView to fill the screen in > the case that the source video does not exactly match the device > screen. We'd like to be able to programatically determine the optimum > video dimensions and have the video player scale appropriately. > Setting the VideoView to FILL_PARENT works fine until the video starts > playing, at which time the VideoView is resized to the video > dimensions. > > Is there an equivalent to a setWidth and setHeight that will stick? > > This is our simple layout: > > <?xml version="1.0" encoding="UTF-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > > <VideoView android:id="@+id/surface" > android:layout_gravity="center" > android:layout_width="fill_parent" android:layout_height="fill_parent" > android:minHeight="480"> > </VideoView> > > </LinearLayout> > > Tried with and without the minHeight and the results appear identical. > > Help? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

