Waiting until load done

Hi Mr @ezequiel

I dont want full code support…

as I said in my message “getScreenshotAsync” doesnt work properly…

I solved my code problems.

But “getScreenshotAsync” doesnt work so ı take same screenshots from all of my code output…

when I change “getScreenshot” with “getScreenshotAsync” API doesnt take screenshot…

That is only I wish to learn… why “getScreenshotAsync” there is something
“getScreenshotAsync(data1, data2)” domesting like that ?

at last : I wanna learn “getScreenshotAsync” detailed informtion about that for now…

I am member for more than 1 year, at begining I ask much question to learn and I learn a lot from your team thanks…for 10 months I dnever ask anything maybe but now I need something like those…

Are you embedding your model using iframe or direct embedding?

I embed directy with ticket…

link= “…”;
let _container = document.getElementById(‘sdv-container’);
let settings = {
container: _container,
ticket: link,
modelViewUrl: “eu-central-1”,
showControlsInitial: false,
showSettingsInitial: false,
brandedMode: false,
};
window.api = new SDVApp.ParametricViewer(settings);

I also tried async code in codepen and it didint work at there too but later, I couldnt use that link again…

Please create a minimal example that explains your problem, it is not clear to me.

@snabela

please check for second screenshot which is taken via “getScreenshotAsync” is empty

@snabela could you check it?

I checked your example. The script can not work like this, because getScreenshotAsync returns a promise. Please read this: Using Promises - JavaScript | MDN
In the script you are using the promise returned by getScreenshotAsync as the src of an image. That can not work, you need to use the result of the promise instead.