GithubHelp home page GithubHelp logo

Comments (6)

VOctavian avatar VOctavian commented on July 30, 2024 1

This works for me
if (env.name !== 'IE' || env.version > 9) { if(typeof nodes == 'undefined' || typeof nodes == 'null' ){ return []; } return Array.prototype.slice.call(nodes); }

from opentok-web-samples.

aullman avatar aullman commented on July 30, 2024 1

I actually did some debugging and figured out how to resolve the issue so that we are creating a new XMLHttpRequest and checking instanceof (new XMLHttpRequest()).constructor but after doing that I ran into other issues with the WebSocket because pace.js are also overriding that!

I think that you're going to have to stop using pace.js or ask them to fix the issue and tell them not to override globals. Specifically window.XMLHttpRequest and window.WebSocket.

from opentok-web-samples.

richardsondx avatar richardsondx commented on July 30, 2024

@VOctavian Thanks! but the problem is coming from Opentok.js and they are expecting us to call the endpoint directly from their server... This need to be fixed in the code.

+1

from opentok-web-samples.

shakalya195 avatar shakalya195 commented on July 30, 2024

Please help. I am having the same issue. and editing opentok.js file does not work for me.

from opentok-web-samples.

shakalya195 avatar shakalya195 commented on July 30, 2024

I found it conflicting with my angular 6 project.
with the JS file
"vendor/pace/pace.min.js",
which is used for automatic page load progress bar.
Don't know whats the problem is but removing this helps me running my Opentok.js.

from opentok-web-samples.

aullman avatar aullman commented on July 30, 2024

Thanks for the heads up about pace.min.js this made me able to reproduce the issue.

It turns out the issue is that pace.js is overriding the global XMLHttpRequest object here.

We should still be able to work around this issue. It's really bad practice of pace.js though to override globals like that. I have filed a bug for this internally though and we'll work on a fix.

from opentok-web-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.