Hey all, I can only hear sound when trying to play a video in a surfaceView. The video codecs are very likely supported - I was reading this thread: http://groups.google.com/group/android-developers/browse_thread/thread/aeefa6c282c6dfcf where Mark Murphy mentions that the video is known to work.
This is very straightforward code, right off the Audio and Video dev guide, so I am surprised I am having so much trouble with it. Thanks, Hamilton Here is all the code in my onCreate method public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MediaPlayer mp = MediaPlayer.create(this, R.raw.documentariesandyou); SurfaceView sv = (SurfaceView)findViewById(R.id.surface); mp.setDisplay(sv.getHolder()); mp.start(); } and here is my XML <?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"> <SurfaceView android:id="@+id/surface" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---