cancel
Showing results for 
Search instead for 
Did you mean: 

How to allow resize on dynamically provided aspect ratio?

butterchickenpizza
Honored Guest

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 3

gavin_prior
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 🙂

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?