Forum Discussion
butterchickenpizza
12 months agoHonored Guest
How to allow resize on dynamically provided aspect ratio?
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
3 Replies
Replies have been turned off for this discussion
- gavin_priorExpert Protege
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 🙂
- butterchickenpizzaHonored Guest
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?
- gavin_priorExpert Protege
I 'think' this is what you are looking for.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 9 months ago
- 5 months ago