12-04-2024 07:24 AM
Hello
I'm developing a quest 2d app using meta spatial sdk which has content of different aspect ratio which is at runtime. How can I set it dynamically so that resizing is locked to aspect ratio?
This will prevent pillar boxing
12-04-2024 07:51 AM
Hi. I'm assuming this is for video content? If so, from what I gather you can query the aspect ratio of the video before displaying. See here:
https://developers.meta.com/horizon/documentation/spatial-sdk/media-view
If this isn't what you are looking for, can you supply a bit more information please 🙂
12-04-2024 10:41 AM
In android manifest there's an option free resizing lock aspect ratio. But the ratio needs to be hardcoded. Is there an option to resize panel with dynamically provided aspect ratio?
12-05-2024 07:36 AM
I 'think' this is what you are looking for.