Skip to content

Instantly share code, notes, and snippets.

@ShwetaChauhan18
Last active April 13, 2020 08:36
Show Gist options
  • Save ShwetaChauhan18/255ebf8133a8bd508e51346de23b8b04 to your computer and use it in GitHub Desktop.
Save ShwetaChauhan18/255ebf8133a8bd508e51346de23b8b04 to your computer and use it in GitHub Desktop.
private fun initializeSurfaceViews() {
binding?.localGlSurfaceView?.init(rootEglBase?.eglBaseContext, null)
binding?.localGlSurfaceView?.setEnableHardwareScaler(true)
binding?.localGlSurfaceView?.setMirror(true)
binding.remoteGlSurfaceView.init(rootEglBase.getEglBaseContext(), null);
binding.remoteGlSurfaceView.setEnableHardwareScaler(true);
binding.remoteGlSurfaceView.setMirror(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment