AdapterJS is not defined

DeanSLR

New Member
Hey,
I'm using the SDK with Vuejs and I'm getting the error:
ReferenceError: AdapterJS is not defined at Object.init.
I've done npm install multiple times and still this issue persists. anyone know how to solve?
thanks
 

DeanSLR

New Member
Hello Max,
On localhost - I dont get this error. but when accessing the site from another computer on the network - I get this error once again.
This happens on the Flashphoner init method.

I compiled this: https://docs.flashphoner.com/display/WEBSDK2EN/Two+Way+Streaming+Vue and when accessing on localhost - works fine. but again - i get the same error when on another pc in the network. I dont get any other information from the error message besides what I wrote.
 

Max

Administrator
Staff member
We built the example form latest available sources according to this manual Building the project and deployed dist folder to an external server. It's working.
Please note that you should open the example built https://yourhost/two-way-streaming-vue/index.html via HTTPS, not HTTP. WebRTC streaming does not work via unsecure HTTP unless you're deploying and opening from localhost. So you have to set up domain and SSL certificate on your web server.
 

DeanSLR

New Member
thanks Max. my issue was that my Vuejs app was served in http and not https so webrtc didnt work properly - only on localhost
 
Top