Skip to main content
New Participant
Dec 4, 2024 3:24 PM UTC

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 

    This topic has been closed for replies.

    3 replies

    Inspiring
    Dec 4, 2024 3:51 PM UTC

    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 🙂

    New Participant
    Dec 4, 2024 6:41 PM UTC

    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? 

    Inspiring
    Dec 5, 2024 3:36 PM UTC