Giter Club home page Giter Club logo

getusermedia's People

Contributors

fippo avatar henrikjoreteg avatar legastero avatar tgabi333 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

getusermedia's Issues

PERMISSION_DENIED -> PermissionDeniedError

From reading the spec, it seems like current Chrome (35) is following the spec now. It sets name to "PermissionDeniedError" which is what the spec says. Did the spec change since you wrote this?

Permission Failure: Let error be a new MediaStreamError object whose name attribute has the value PermissionDeniedError and jump to the step labeled Error Task below.

Constraint Failure: Let error be a new MediaStreamError object whose name attribute has the value ConstraintNotSatisfiedError and whose constraintName attribute is set to the name of the constraint that caused the error.

What do you think about updating this module?

webrtc-adapter

Hello @fippo!
Thanks for the very handy package!
One question troubles me. In index-browser.js there is a webrtc-adapter dependency, which is a sort-of polyfill. That, I believe, unresonably bloats bundle size up to 70kb(!). That is larger than size of some web-applications, and all that is only to provide a bit more convenient way to get user media than default.
How much is it reasonable?
Thanks.

Can't request just audio?

I get a stream if I ask for video only, or video + audio, but asking for just audio gives me PERMISSION_DENIED. Using Chrome version 30.0.1599.66 on Linux.

why use webrtc-adapter-test?

We had to switch to a different getusermedia library because webrtc-adapter-test is blowing up on anything that isn't chrome or firefox + mutating a bunch of globals. What's the reason for this library using webrtc-adapter-test?

Bower support

Can we have support for bower as well, apart from npm? Can send you a pull request for it.
Thanks.

Doesn't work in Electron

Electron leverages Node.JS, which has access to the navigator, but seems to be loading index-node.js, which just throws back an error.

Mute Functioning?

Is there any way to implement mute()? I have been searching for all kind of info but there is none and the source code isn't very clear imo. I would give this package 2 thumbs up if I can manipulate the mute and camera facing features however getting to the userMedia seems to be a mission. Can anyone else provide any instructions? SimpleWebRTC not so simple it seems.

getting empty streams on windows

probably has nothing to do with this library, but has anybody noticed that chrome 42 (latest stable as of today) on windows is returning empty black streams from getusermedia?

Silence in being launched locally

Hello!
If to open a page in browser locally as file://..., then getusermedia does not invoke a callback, as if everything is fine, but indeed it is not. Should it?
I think it would be useful to catch error or something, to display that it is not available.

Can I set a virtual stream when callback failed ?

getUserMedia(function (err, stream) {
  if (err) {
     console.log('failed');
  } else {
     console.log('got a stream', stream);  
  }
});

When callback success, we can use stream for a video element:

<video src="stream"></video>

But when callback failure, Can I set a virtual stream for a video element? such as:

getUserMedia(function (err, stream) {
  if (err) {
     /*
       get a virtual stream
       the virtual stream comes from a video,  or img ...
       and the virtual stream can use for a video element
     */

  } else {
     console.log('got a stream', stream);  
  }
});

Why cb?

Why not exposing the Promise based standard API of getUserMedia()?

Access to array of cameras

I know that it is possible to get an array of all the available cameras using some browsers like Chrome. How can I archieve it through your shim?

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.