Wednesday, September 12, 2012

[android-developers] Re: HDMI Mirroring multiple surface layers not working

We have similar problem, an simple app with a videoview + textview, on many devices works normally, but in a Acer 500 via HDMI it only shows video in full screen....

El miércoles, 5 de septiembre de 2012 16:00:42 UTC-3, Robert Green escribió:
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment