[jitsi-dev] js: ReferenceError: chrome is not defined


#1

Hello,

I am trying to write a Simple Browser based on QtWebEngine. In the example
that i
have, i have a simple QML Application that i am trying to run to open
https://meet.jit.si/
However i get the "js: ReferenceError: Chrome is not defined"

qrc:/BrowserWindow.qml:194:21: QML Image: SSL handshake failed
js: Uncaught TypeError: Cannot read property '1' of null
js: Uncaught ReferenceError: JitsiMeetJS is not defined
qml: start
qml: stop
js: Synchronous XMLHttpRequest on the main thread is deprecated because of
its detrimental effects to the end user's experience. For more help, check
http://xhr.spec.whatwg.org/.
qml: start
qml: stop
js: Synchronous XMLHttpRequest on the main thread is deprecated because of
its detrimental effects to the end user's experience. For more help, check
http://xhr.spec.whatwg.org/.
js: ReferenceError: chrome is not defined
qml: start
qml: stop

I am attaching the QML/Qt Project for your reference, could you please help
isolate what the issue is here?

Thx,
Jay

Qt_Webrtc_App.tar.bz2 (11.5 KB)


#2

Hello,

I am trying to write a Simple Browser based on QtWebEngine. In the
example that i
have, i have a simple QML Application that i am trying to run to open
https://meet.jit.si/
However i get the "js: ReferenceError: Chrome is not defined"

That's strange. Our code assumes that it is running on Chrome based solely on the presence of webkitGetUserMedia[0]. So it either wrongly thinks that it is running on Chrome, or wrongly assumes that is is running on Safari version 1 [1].

You should check what your UserAgent string is, and make sure it doesn't choke our code[2].

I don't understand what tries to access "Chrome" (with capital "C"). A quick grep didn't yield any results.

qrc:/BrowserWindow.qml:194:21: QML Image: SSL handshake failed
js: Uncaught TypeError: Cannot read property '1' of null
js: Uncaught ReferenceError: JitsiMeetJS is not defined

It seems that https://meet.jit.si/libs/lib-jitsi-meet.min.js has failed to load, probably because of the above errors.

Regards,
Boris

[0] https://github.com/jitsi/lib-jitsi-meet/blob/master/modules/RTC/RTCBrowserType.js#L75
[1] https://github.com/jitsi/lib-jitsi-meet/blob/master/modules/RTC/RTCBrowserType.js#L164
[2] https://github.com/jitsi/jitsi-meet/issues/370

ยทยทยท

On 15/02/16 19:55, Jayasimha Raghavan wrote: