I need to play a video image stream onto an OpenGL texture because in Android 3.0 rendering a translucent GLSurfaceView over a VideoView is now far too slow, whereas it was previously OK in Android 2.2
SurfaceTexture seems to be how it now supposed to work, and it mentions in the SDK docs "The image stream may come from either camera preview or video decode. A SurfaceTexture may be used in place of a SurfaceHolder when specifying the output destination of a Camera<http://developer.android.com/reference/android/hardware/Camera.html>or MediaPlayer<http://developer.android.com/reference/android/media/MediaPlayer.html>object" In the camera class there is a "setPreviewTexture<http://developer.android.com/reference/android/hardware/Camera.html#setPreviewTexture(android.graphics.SurfaceTexture)> (SurfaceTexture<http://developer.android.com/reference/android/graphics/SurfaceTexture.html>surfaceTexture)" In the MediaPlayer class it mentions "setTexture" in the overview but the function is not mentioned again, attempting to call it in code will not allow it to compile. Is there someway to convert a SurfaceTexture into a SurfaceHolder to be able to call setDisplay() in the MediaPlayer class? or where is this function? How to you pass a SurfaceTexture to the MediaPlayer to get it to player the video image stream to an openGL texture? -- 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