Hi
I am trying to implement 2 mediaplayer concept with two surface views
but it is not allowing me to display videos on two surfaces. I have
the following layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical">
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical">
<EditText android:hint="http://imimobile.com/example.m3u8"
android:id="@+id/EditText01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="http://10.0.0.230/streamingvideo/splitter/
sample1.m3u8"></EditText>
<Button android:id="@+id/button_stream"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10px"
style="?android:attr/buttonStyleSmall"
android:text="Start
Streaming" />
</LinearLayout>
<FrameLayout android:id="@+id/LinearLayout02"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<SurfaceView android:id="@+id/VideoView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></SurfaceView>
<SurfaceView android:id="@+id/VideoView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></SurfaceView>
</FrameLayout>
</LinearLayout>
So here when i am preparing medialplayer 1 with VideoView01 and
mediaplayer 2 with VideoView02 in hanlders and posting to UI thread
but player 1 plays video file fine but mediaplayer2 doesnt display
video but audio is working fine.
Please help me.
--
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