In this tutorial it is shown how to make browser ask user for microphone and/or camera access.
I don't need input devices access, I need user to allow site to play notification sounds. Is there a way to make a similar prompt for autoplay permissions? (Instead of giving user instructions on how to allow it).
Related
I am working on a project which takes video input from user and puts the prediction and sends the video frames to the users. As it is easy on my device as it does not need any permission to access. But when it comes to the client side it asks for capturing and saving the frames which is a irritating task. I want a solution that it has to take the device camera permission and autosave the video frames into the device.
I tried opening the device camera using python OpenCV. It works fine with my system, but when it comes to the deployment stage python is unable to open the user device camera. I am searching for a solution which can open device camera using Javascript and autosave the video frames into the device without any single click for capturing and saving the frames.
I'm developing a website, in which I need to ensure that some pages won't be opened in more than one tab / browser. I need some sort of client identification. As I know MAC address cannot be queried using javascript.
I know that Netflix does something just like this, when opening two tabs of video watching, Netflix prompt an error that I'm already watching. Even if I'm using a different browser, Netflix can still tell I have another browser which is watching a video, which means they don't use cookies for this.
So in short, how can a web app distinguish between computers? How Netflix does that?
is there any way to programmatically trick the “camera permission request” in WebRTC maybe with JavaScript ? so permission is guaranteed without asking explicitly for permission and show camera stream right away ? I want to build a web app similar to Instagram and only ask the user once the web app is saved on homescreen for camera permission, not every time he opens the app.
cheers
Sebastian
I am attempting to create it so when a user plays a sound, it plays the sound to the users microphone input. Thus when they're in a Skype Call/Game chat/etc it will be played for all users to hear.
Is there any way to play music to the microphone instead of speakers in Javascript/jQuery? If not, does node-webkit give me any more ability to do this?
Hopefully this is well explained, it is a little challenge.
Thanks for any, and all advise!
This is not possible from the web browser alone. Most systems aren't even capable of this directly.
It is up to the client to decide how to route audio and there is no control of this within the browser, except for what happens within the page itself.
The best you can do is to recommend to your users how to configure their systems. For your Windows users, they will need a virtual audio loopback driver. http://vb-audio.pagesperso-orange.fr/Cable/
I want to create an smartphone in web browsers, and I've done a good job till now. However, when I call, Google Chrome shows this message:
'http://domain' the wants to use your microphone.
See this picture:
And this is a picture of my web-based smartphone:
However, when I call, user should click Allow in the Chrome's message bar. Is there any way that I ask the browser to save microphone settings for the current user, so that each time user is not asked for permission?
You need to serve your page over https. When using https, Chrome will remember the user's choice and will not ask again.
Then if the user wants to block the microphone again, they can click on the camera icon in the URL bar.
If you go to Chrome's Settings => Advanced => Content Settings => Media section, you see that there are only two options that you can choose:
To be asked EACH TIME a page wants to access your microphone or camera
To disable media altogether
Thus there seems to be no option for that. It might sound logical, as you don't want hackers starting your camera and capturing your private life without permission. ;)