ANDROID - How to use video as background in Andengine

I use the AndEngine engine to play in my application. I am using the AnalogOnScreenControls example variant found here ; I am expanding BaseGameActivity. I need to somehow set the background of the application to the video that I transmit from Ustream.com. I was thinking about making the background transparent, what I saw here to display my .xml layout under the WebView, but I could not figure out how to do this in my own code. This is what I tried (directly from the code in the second link) with the rest of my methods below:

protected void onSetContentView() { this.mRenderSurfaceView = new RenderSurfaceView(this); this.mRenderSurfaceView.setEGLConfigChooser(new ComponentSizeChooser(4, 4, 4, 4, 16, 0)); this.mRenderSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); this.mRenderSurfaceView.setRenderer(this.mEngine); this.setContentView(this.mRenderSurfaceView, createSurfaceViewLayoutParams()); } 

I also tried to set the scene as a video, but could not do it. If anyone could provide assistance in creating streaming video on my background application, while the two analog controls were fully functional and visible, I would greatly appreciate it.

+4
source share

All Articles