|
@@ -0,0 +1,14 @@
|
|
|
+cocoscreator 组件置于video上面方法:
|
|
|
+Android端修改:
|
|
|
+1. AppActivity-->onCreateView方法
|
|
|
+ Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
|
|
|
+ glSurfaceView.setZOrderMediaOverlay(true);
|
|
|
+ glSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
|
|
|
+ glSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8);
|
|
|
+ SDKWrapper.getInstance().setGLSurfaceView(glSurfaceView, this);
|
|
|
+
|
|
|
+2. 依赖项目 libcocos2dx-->Cocos2dxVideoHelper-->_createVideoView方法
|
|
|
+ 注释 videoView.setZOrderOnTop(true);
|
|
|
+
|
|
|
+3. 触摸video上组件,需要注释video的touch事件。libcocos2dx-->Cocos2dxVideoView->onTouchEvent
|
|
|
+ 直接return false
|