Skip to main content
New Participant
December 4, 2024

How to allow resize on dynamically provided aspect ratio?

  • December 4, 2024
  • 3 replies
  • 858 views

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
    December 4, 2024

    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
    December 4, 2024

    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
    December 5, 2024