3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I want to achieve that pop up a div when I click an entity,and show panoramic scenes in the div. But when I add codes that load panoramic scenes,the error occurs.I have no ideas about the error.Is there a conflict between the CesiumJs and pano2vr_player.js
Hi Gabby,
Thanks for your reply.
The problems you pointed do need to pay attention, thanks for your suggestions.In that determine statements:
if (Cesium.defined(pickedObject) && (pickedObject.id === entity))
The entity is an instance of Entity, the id of the entity is unique, but I want to make sure picked object is an entity, the code seems to be not suitable.How could I modify the code
But the error is not caused by those problem.If I didn't write the *1,*2 and *3 codes, the program wouldn't occur the error.
Actually I have solved the problem, but this solution may lead to new problems.
The sentence 'o instanceof HTMLVideoElement' in line 478 of Cesium.js made the 'Right-hand side of 'instanceof' is not an object ' error occur. I set breakpoints and I found that the HTMLVideoElement changed from 'ƒ HTMLVideoElement() [native code] ' to 'null' after the line*3 ran. Then I searched 'HTMLVideoElement' in pano2vr_player.js, and I found '... ,a:HTMLVideoElement=null, ...'.I delete the 'a:HTMLVideoElement=null,' and the error no longer occurs.But I didn't know the function of that sentence, it maybe lead new error in the future.
Thanks again for your reply.
Best,
Jingru