I'm working on handling loading errors, It works on imageDrawable, But not on 3d Model and VideDrawable, "onError" function deosn't fire when url is wrong.
I use same code steps like on imageDrawable:
return new AR.Model( modelPath, {
onLoaded: function modelLoaded() { World.completeObjectLoading; },
We are having a look at this issue. Please ensure the path to the model is valid + try using console.error("error occurred") instead of the alert. If this doen't make a difference please post device and operating system information here so our tech team has everything in place.
Best regards, Andreas
h
heba Muhammad
said
about 8 years ago
Hi
Model/Video path is correct, and it appears great, but we change this pathes dynamically, so I have to handle Loading Errors.
I used console.error("error occurred") instead alert, But all what I got was this: Wikitude SDK: Model failed to load. Reason: The requested URL returned error: 404 Not Found.
I test on iPad2 ( iOS 9 ) and iPhone 4 (iOS 7), both have same issue.
Thank you,
N
Nicola Radacher
said
about 8 years ago
Hi,
From the error message you posted it sounds like that the model can't be found:
Wikitude SDK: Model failed to load. Reason: The requested URL returned error: 404 Not Found.
Please recheck the path to the model.
Greetings
Nicola
h
heba Muhammad
said
about 8 years ago
I know it's a wrong path, I want to handle onError method, So path must be wrong to test it.
Although path is wrong, onError didn't fire, that is bug/issue in wikitude and Andreas said that they work on it.
Thank you,
N
Nicola Radacher
said
about 8 years ago
Hi,
Ah ok - sorry I missunderstood the issue and didn't realize that the issue is already investigated.
heba Muhammad