Comments (24)
Hey @rodfersou no worries, I ended up not needing this for the project anyway. Thanks for getting back to me though!
from getusermedia.js.
Hello? @addyosmani @franzenzenhofer @pablocubico @PhUU @rodfersou
from getusermedia.js.
@binarykitchen I think this button is managed by flash
from getusermedia.js.
@rodfersou you think or are you sure? i really need a callback for when the allow button is pressed. otherwise my app will never know when the webcam is ready for recording. this is really important i must say. otherwise it's totally unusable for us.
from getusermedia.js.
@rodfersou I think I found an example where you can see that there is a callback for when the user has pressed the allowed button in the Flash dialogue, see this line https://github.com/jhuckaby/webcamjs/blob/master/webcam.js#L583
So why not investigate this deeper and add this here too?
from getusermedia.js.
And this link confirms that it's possible:
http://help.adobe.com/en_US/as3/dev/WSfffb011ac560372f3fa68e8912e3ab6b8cb-8000.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7d37
from getusermedia.js.
@binarykitchen nice!
from getusermedia.js.
jhuckaby/webcamjs#96 (comment) confirms. Do you think you could add it please?
from getusermedia.js.
@binarykitchen how can I see this problem happen? could you plese provide me the steps? can I reproduce it with a linux machine?
from getusermedia.js.
@binarykitchen I'll try to look at it on my free time if you help me to see the problem happen
from getusermedia.js.
how to reproduce? i recommend to begin with the face-detection-demo code. in the options
at https://github.com/addyosmani/getUserMedia.js/blob/gh-pages/face-detection-demo/js/demo.js#L88
add a new event, for example onAllow: function() { ... }
and have it fired when the user has clicked the Allow button.
the flash dialogue to ask whether to allow/disallow flash execution always shows. regardless whether you are on linux/mac/windows i think.
from getusermedia.js.
@binarykitchen did you test with what browser and what OS?
from getusermedia.js.
Latest Firefox v39.0 on Ubuntu v15.04
from getusermedia.js.
Any luck?
from getusermedia.js.
@rodfersou ping???
from getusermedia.js.
I'm using firefox v39.0 in my Ubuntu, and it is not using flash when enable the camera.
Anyway, why don't you just look for the success callback to know that the camera is working?
It would be the same with or without flash.
from getusermedia.js.
no, you don't understand - i am working on another library (https://www.npmjs.com/package/videomail-client) where i want to make it work for IE9+ too. i am looking for a library to encapsulate all the webcam communication plus all their events behind it.
this one library is almost a perfect match. all i need is an event to be triggered for when the user has granted the permission to access webcam. this regardless whether it's done via the getusermedia or via the flash path.
i need such a 'granted' event so that i can trigger someting else in the videomail-client for a very good reason.
i've seen other flash frameworks being able to catch and forward that event. so can you please add it?
hope this explains ...
from getusermedia.js.
@binarykitchen what I mean is that if don't grant access it will not trigger the success callback..
from getusermedia.js.
you can work with this
from getusermedia.js.
i think we do not understand each other.
tell me, what callback is triggered then access is granted? there is no such callback at the moment.
from getusermedia.js.
success callback do it.
simple test: open the demo page and with chrome dev tools put a callback into success callback.
you will see that it will be triggered just when you allow to use the webcam
from getusermedia.js.
i doubt this will do but i tried to run the demo and forced the flash with noFallback = false
in google chrome. but it doesn't work there, the flash container never gets loaded and i am seeing the error Uncaught TypeError: Cannot read property 'code' of undefined
.
cam.capture
is always undefined. looks broken to me.
from getusermedia.js.
@rodfersou @binarykitchen I'm running into the same problem with the flash execution path. The success function is never called and reading through the code, I'm having trouble seeing how it would be. I'm guessing somehow this
getUserMedia.js/lib/getUserMedia.js
Line 127 in a0f839a
getUserMedia.js/lib/getUserMedia.js
Line 125 in a0f839a
Any help would be greatly appreciated!
from getusermedia.js.
@shannon-fluellen-aurea sorry, this issue is from 4 years ago... I'm afraid I can't help anymore with it because I don't remember and don't need anymore this code... I used it just in a simple project.
also, I'm out of free time now... good luck hacking with it!
from getusermedia.js.
Related Issues (20)
- Object doesn't support property or method 'setTimeout' on IE HOT 5
- some solid documentation and examples HOT 4
- Getting audio and video (question) HOT 1
- Recent Chrome Version 47.0.2526.73 Breaks
- choose front/back camera in IE11 HOT 1
- Fallback Image Capture With Larger Window HOT 2
- Can I just specify height and let width be proportional to the stream size?
- Firefox deprecated navigator.getUserMedia HOT 1
- Support for Promise interface
- Supporting audio in the fallback HOT 8
- Not working in IE 11 HOT 2
- how is it different from adapter.js?
- demo.js assumes that unprefixed MediaStream is Firefox-only
- In Chrome it errors: Uncaught (in promise) DOMException: Failed to load because no supported source was found. HOT 5
- Demo is not working on Chrome, Firefox, Safari! HOT 5
- Example to turn on flash light?
- Not getting any error callback when camera permissions are denied on IE
- cam.capture always undefined
- Questions about Float32Array and Compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getusermedia.js.