We have 2 layers,

1)  SurfaceView with MediaPlayer attached to play video
2)  Translucent GLSurfaceView for interactive 3D on top of video

The configuration is really pretty simple:

MyGLSurfaceView glView = new MyGLSurfaceView (this);
((GLSurfaceView)glView ).setZOrderMediaOverlay(true);
((GLSurfaceView)glView 
).setBackgroundColor(getResources().getColor(android.R.color.transparent));
SurfaceView videoView = new SurfaceView(this);
videoView.getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
setContentView(videoView, new LayoutParams(LayoutParams.FILL_PARENT, 
LayoutParams.FILL_PARENT));
addContentView((GLSurfaceView)glView, new 
LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));


This works normally on tons of devices, but when I connect an Asus 
Transformer tablet up via HDMI, it only shows the video layer and nothing 
from OpenGL. Basically it's not compositing the surface layers before 
pushing it to HDMI.

Shouldn't it be or is there something I'm missing?

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

Reply via email to