Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
Matterport SDK in VR browser?

Currently the Matterport SDK works in regular browsers like this:

<iframe id="showcase" width="740" height="480" src="/bundle/showcase.html?m=[MODEL_SID]" frameborder=”0” allowfullscreen allow="vr"'></iframe>

const showcase = document.getElementById('showcase');
showcase.addEventListener('load', async function() {
let sdk;
try {
    sdk = await showcase.contentWindow.MP_SDK.connect(showcase, '{YOUR SDK KEY}');
}
catch(e) {
    console.error(e);
    return;
}

console.log('Hello Bundle SDK', sdk);
});

https://matterport.github.io/showcase-sdk/sdkbundle_home.html

However this doesn't seem to work in VR browsers such as the Oculus browser within Quest 2.

Expected results:
- Open page and see model in embedded iframe
- Navigate inside model normally and all SDK functions working
Actual results:
- Open page and see model in embedded iframe (but with large play button overlay)
- On click play overlay page breaks out of iframe into new page and displays in 360 mode
- SDK functions no longer work since URL is no longer our site

My question is, how can I use the Matterport SDK within VR browsers or prevent it from breaking out of iframe?

You can try embedding this link inside an iframe and then opening inside a VR browser to see this happening:

https://my.matterport.com/show/?m=HCtwtEENp4t

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda