GithubHelp home page GithubHelp logo

Comments (11)

jmillan avatar jmillan commented on August 22, 2024

This is exactly how I was doing it ;-)

from jssip.

saghul avatar saghul commented on August 22, 2024

+1 to this. However, this doesn't qualify for 0.2.X. It doesn't change the API, but it adds new elements to the public API, so we need to bump the version to 0.3.0.

Btw, can we come up with a namespace for this? JsSIP.getUserMedia applies only to WebRTC stuff, we can do more than WebRTC, potentially.

from jssip.

jmillan avatar jmillan commented on August 22, 2024

@saghul what would that namespace stand for?

from jssip.

jmillan avatar jmillan commented on August 22, 2024

I guess, for new features/API changes, the best thing is doing this on a self branch. Continue with the 0.2.x development until the 0.3.0 release, when the branch would be merged in master before releasing.

Same with other features tagged for future releases.

This feature would provide interoperability with browsers that implement (http://dev.w3.org/2011/webrtc/editor/webrtc.html) other than Chrome. While it is not a big change in the code, I believe it is worth to be released as a 0.3.0 feature.

from jssip.

saghul avatar saghul commented on August 22, 2024

@jmillan YES.

from jssip.

rjcoelho avatar rjcoelho commented on August 22, 2024

A few notes in firefox support I found:

from jssip.

ibc avatar ibc commented on August 22, 2024

I propose a new file src/WebRTC.js which includes the following functions:

  • JsSIP.WebRTC.getUserMedia() which calls to webkitGetUserMedia() or mozGetUserMedia().
  • JsSIP.WebRTC.RTCPeerConnection() which calls to webkitRTCPeerConnection() or mozRTCPeerConnection().
  • JsSIP.WebRTC.URL() which calls to webkitURL() or mozURL().

And then use those functions in the whole JsSIP code.

from jssip.

ibc avatar ibc commented on August 22, 2024

Let's check the JS WebRTC adapter code in the WebRTC demo app: https://apprtc.appspot.com/js/adapter.js

from jssip.

ibc avatar ibc commented on August 22, 2024

First approach in new "multi-browser" branch at commit 475cb16.

from jssip.

jmillan avatar jmillan commented on August 22, 2024

@ibc,

This issue can be closed IMHO.

from jssip.

ibc avatar ibc commented on August 22, 2024

Done in d26448e

from jssip.

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.