Giter VIP home page Giter VIP logo

Comments (9)

josephfrazier avatar josephfrazier commented on May 22, 2024

Hmm, I'm actually not sure which version the demo phone runs. I doubt the problem would be a due to a version difference, but if you want to be sure, you could run the demo phone locally and have it use 0.5.0+bower.

However, if it's the same Freeswitch in both cases, it sounds like your app might be receiving media, but not rendering it correctly. You can use chrome://webrtc-internals/ or Wireshark to determine whether or not media is flowing in.

from sip.js.

lylepratt avatar lylepratt commented on May 22, 2024

Yep, same FreeSWITCH and same Browser. Thats why its so weird!

I'll try out those tools later. Thanks for the pointers.

from sip.js.

lylepratt avatar lylepratt commented on May 22, 2024

Progress! I didn't realize that I actually had to manually attach the stream to a video element. Is that really necessary or am I missing something?

After I did this I get sound:

        var element = $(".video_container video")[0];
        var stream = this.mediaHandler.getRemoteStreams()[0];

        if (typeof element.srcObject !== 'undefined') {
          element.srcObject = stream;
        } else if (typeof element.mozSrcObject !== 'undefined') {
          element.mozSrcObject = stream;
        } else if (typeof element.src !== 'undefined') {
          element.src = URL.createObjectURL(stream);
        } else {
          console.log('Error attaching stream to element.');
        }

Can you use an audio element instead of a video element? Is there a more programatic way of doing this using something like SoundManager2?

from sip.js.

josephfrazier avatar josephfrazier commented on May 22, 2024

(Typing on phone) you can use this if you build from source: 4096365

from sip.js.

lylepratt avatar lylepratt commented on May 22, 2024

Cool! TY for your help (especially on this holiday weekend). I'll mark this as closed.

from sip.js.

lylepratt avatar lylepratt commented on May 22, 2024

Hey just curious: is there a reason why the Bower version isn't pulling in the latest? Or why there isn't a Bower version that does? Having trouble getting the PhoneRTCMediaHandler to work with Bower version, so I'm assuming I need to build.

from sip.js.

egreenmachine avatar egreenmachine commented on May 22, 2024

It is not surprising that PhoneRTCMediaHandler does not work with 0.5.0. We are preparing to release 0.6.0 very soon, and that will be on Bower. We do not include dist files on GitHub so we cannot make a bower release for the latest version at any given point.

from sip.js.

lylepratt avatar lylepratt commented on May 22, 2024

I see. Thanks for the clarification! I'll build from source for now.

from sip.js.

egreenmachine avatar egreenmachine commented on May 22, 2024

Just wanted to give you an update that we have released 0.6.0. It should be available on Bower now as well.

from sip.js.

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.