-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
咨询个MediaSync的问题 #4087
Comments
不理解 |
sync.setSurface(surface); 传入的是SurfaceView 生成的surface 画面就现实正常 如果是 纹理的 surface 画面就出现只有第一帧或者黑屏 |
哦,我想着 GSY 也开发这么底层接口,说的是单纯 MediaSync 问题啊····· 理论上 SurfaceView 和 TextureView 的区别,主要还是在于设备硬件加速支持上,TextureView 会用 GPU 将 TextureView 的内容合成到视图层次结构中 比如 缩放 SurfaceView 需要用 FrameLayout 的自定义实现,WindowManager 需要向 SurfaceFlinger 发送新的窗口位置和尺寸值。 缩放 TextureView 的 SurfaceTexture 需要使用 TextureView#setTransform() 配置转换矩阵。 所以如果黑屏,主要可能是在于 app 没开启硬件加速或者硬件支持问题? |
设备硬件是支持的 并且也是开启了硬件加速 |
你这么说,我也没办法猜出来,哈哈哈 |
MediaSync同步音视频 使用SurfaceView中surface 可以更新画面 如果使用TextureView 的surface 就无法更新画面 这是什么原因导致的
The text was updated successfully, but these errors were encountered: