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
-~----------~----~----~----~------~----~------~--~---

Reply via email to