Getting issue with snapshotAsync Fun

vikram_s

Hi William Thompson,

I am trying to call the snapshotAsync() function but getting an error. please check the screenshot.

Please suggest me.

Thanks

 

Comments

4 comments

  • Comment author
    William Thompson
    • Edited

    Hi Vikram, can you confirm that your player API is available at window.threekit.player? I just tested your code and your syntax seems okay, which makes me believe your API may not be available there. 

    0
  • Comment author
    vikram_s

    Sorry, I'm a little confused. Yes we are using and item is loading in the player:
     window.threekit
      .init({
        el: 'player-root',
        onSelectionChange: this.handleItemSelection,
       })
      .then(() => {
        //expose these directly on window for dev convenience
        window.api = window.threekit.api;
        window.configurator = window.threekit.configurator;
     });

    0
  • Comment author
    William Thompson
    • Edited

    If your player API is located at window.threekit.api I believe you will have to use window.threekit.api.snapshotAsync(). If that doesn't work please send me a link to the embed and I will investigate. 

    0
  • Comment author
    vikram_s

    Ok let me check once.

    Thanks

     

     

    0

Please sign in to leave a comment.