Coder Social home page Coder Social logo

Comments (24)

shannon-fluellen-aurea avatar shannon-fluellen-aurea commented on July 29, 2024 1

Hey @rodfersou no worries, I ended up not needing this for the project anyway. Thanks for getting back to me though!

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

Hello? @addyosmani @franzenzenhofer @pablocubico @PhUU @rodfersou

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

@binarykitchen I think this button is managed by flash

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

@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.

binarykitchen avatar binarykitchen commented on July 29, 2024

@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.

binarykitchen avatar binarykitchen commented on July 29, 2024

And this link confirms that it's possible:
http://help.adobe.com/en_US/as3/dev/WSfffb011ac560372f3fa68e8912e3ab6b8cb-8000.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7d37

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

@binarykitchen nice!

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

jhuckaby/webcamjs#96 (comment) confirms. Do you think you could add it please?

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

@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.

rodfersou avatar rodfersou commented on July 29, 2024

@binarykitchen I'll try to look at it on my free time if you help me to see the problem happen

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

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.

rodfersou avatar rodfersou commented on July 29, 2024

@binarykitchen did you test with what browser and what OS?

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

Latest Firefox v39.0 on Ubuntu v15.04

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

Any luck?

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

@rodfersou ping???

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

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.

binarykitchen avatar binarykitchen commented on July 29, 2024

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.

rodfersou avatar rodfersou commented on July 29, 2024

@binarykitchen what I mean is that if don't grant access it will not trigger the success callback..

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

you can work with this

from getusermedia.js.

binarykitchen avatar binarykitchen commented on July 29, 2024

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.

rodfersou avatar rodfersou commented on July 29, 2024

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.

binarykitchen avatar binarykitchen commented on July 29, 2024

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.

shannon-fluellen-aurea avatar shannon-fluellen-aurea commented on July 29, 2024

@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

options.onLoad = successCallback;
is what would do it but that event isn't triggering in Safari. Why would an options object like that have an onLoad event? Does it have anything to do with this?
// options.onLoad();

Any help would be greatly appreciated!

from getusermedia.js.

rodfersou avatar rodfersou commented on July 29, 2024

@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)

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.