Replies: 1 comment 2 replies
-
i had a similar problem and in my case the texture became available on the first time i install the app and the app show the dialog to ask for permission, but every other time the texture did not became available. So i understood that this was a timing issue, when i already had the permission the ui was trying to get the texture immediatly (probably before the view in maui world was set up with a valid size ??) and the end result no texture became available maybe because it was asking a texture of size 0,0 ? (i think something like that was happening) . Hope this can be of some help to you. |
Beta Was this translation helpful? Give feedback.
-
In my big project I'm using a custom renderer for a ContentView so that I can use a TextureView to interact with the camera. After migrating to MAUI I find that the SurfaceTexture never becomes available. I recreated an extremely simple version of this problem in a Forms project and a MAUI project. I find that the SurfaceTexture becomes available in Forms but it doesn't in MAUI. Is it a bug? Am I missing something?
Just run the app and you'll see that in the Forms version we hit the Debugger.Break() in the SurfaceTextureAvailable callback, and in the MAUI we do not.
https://github.com/KRA2008/ContentViewRendererForms.git
https://github.com/KRA2008/ContentViewRendererMaui.git
Beta Was this translation helpful? Give feedback.
All reactions