Explore the community Forums CenarioVR CenarioVR Questions & Answers CenarioVR and Lectora talking Reply To: CenarioVR and Lectora talking

#413176 Score: 0
Profile photo of Geminys SL
Geminys SL
Member
beginner
intermediate
curious george
wise owl
friend finder
contributor
1 pt
@gsl4958

Hi Felipe, thanks for your answer.

I have tried in Mozilla Firefox and Chrome (last versions) and in both the same javascript error is reported (attached image). The error is reported when I click the hot spot in CenarioVR.

I also try in the ScormCloud and the same error is reported.

 

/****************My JS code for the listener******************/
window.addEventListener(‘message’, function(event) {
var data = JSON.parse(event.data);
console.log(data);

var messagedatatype = data.type;
if (messagedatatype==’cenariovr:clicked’) {
if(data.object == ‘cabina – tensiometro’){
callActionGroup(‘showtensiometro’);
}else if(data.object == ‘cabina – medidor’){
callActionGroup(‘showmedidor’);
}else{
console.log(“Hotspot Clicked: ” + data.object );
}
}
}
);

/****************************************************/

 

I’ve checked that the JS (listener) is loading correctly and I set a breakpoint into the function of the listener but never gets at that point. It seems that the event of CenarioVR is not being recognised….

 

Any idea?

 

 

 

Attachments: