getusermedia

Cordova: getUserMedia() no longer works on insecure origins

浪尽此生 提交于 2021-02-19 08:07:12
问题 THE SITUATION In my Cordova hybrid app (built with Quasar framework), I need to a add a video-call feature. I need to use the function getUserMedia() . Everything works fine while testing on localhost, but when testing on the device it doesn't work. THE ERROR: [Deprecation] getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. Most probably this error is caused by the fact that Cordova doesn't

How can I use Opus Codec from JavaScript

谁说胖子不能爱 提交于 2021-02-17 19:13:27
问题 I would like to see if it's possible to have direct access to Opus using getUserMedia or anything similar from the latest browsers. I've been researching on it a lot but with no Good results. I'm aware that either Opus or Speex are actually used in webkitSpeechRecognition API. I would like to do speech recognition but using my own server rather than Google's. 回答1: So there are a lot of suggestions about Emscripten but nobody did, so I ported the encoder opus-tools to JavaScript using

How can I use Opus Codec from JavaScript

余生长醉 提交于 2021-02-17 19:12:15
问题 I would like to see if it's possible to have direct access to Opus using getUserMedia or anything similar from the latest browsers. I've been researching on it a lot but with no Good results. I'm aware that either Opus or Speex are actually used in webkitSpeechRecognition API. I would like to do speech recognition but using my own server rather than Google's. 回答1: So there are a lot of suggestions about Emscripten but nobody did, so I ported the encoder opus-tools to JavaScript using

How can I use Opus Codec from JavaScript

独自空忆成欢 提交于 2021-02-17 19:12:01
问题 I would like to see if it's possible to have direct access to Opus using getUserMedia or anything similar from the latest browsers. I've been researching on it a lot but with no Good results. I'm aware that either Opus or Speex are actually used in webkitSpeechRecognition API. I would like to do speech recognition but using my own server rather than Google's. 回答1: So there are a lot of suggestions about Emscripten but nobody did, so I ported the encoder opus-tools to JavaScript using

Can Chrome content and background scripts share access to blob: URLs?

有些话、适合烂在心里 提交于 2021-02-09 11:52:59
问题 I'm creating a getUserMedia stream in a Chrome extension content script, and I'd like to pass it to the background script. You can't pass non-JSON'able data between them, so my strategy is to pass instead the generated blob URL to the stream. Content script: function get_stream() { navigator.mediaDevices.getUserMedia({video: 1}).then(stream => { chrome.runtime.sendMessage({action: 'got_stream', params: {stream_url: URL.createObjectURL(stream)}}); }); Background script: chrome.runtime

How to change size in imageCapture.takePhoto()?

本小妞迷上赌 提交于 2021-02-08 10:35:54
问题 I need to change the size of a photo from imageCapture.takePhoto() but it is not working.I need to change the size to 320 height X 240 width but the result is 640 height X 480 width. Here you can found the documentation.https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/takePhoto navigator.getUserMedia( { video:true, audio:true }, function(localMediaStream) { const track = localMediaStream.getVideoTracks()[0]; let imageCapture = new ImageCapture(track); imageCapture.takePhoto(

How to Hide Firefox Camera Icon Overlay in Windows

早过忘川 提交于 2021-02-07 12:39:49
问题 I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera. The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using mozGetUserMedia: Here you can see it at the top of the screen. I have tried searching through the options on the about:config page, but I can't find any setting that disables this. It only shows up on Windows, and not OS X. How can I disable this icon? 回答1:

How to Hide Firefox Camera Icon Overlay in Windows

眉间皱痕 提交于 2021-02-07 12:38:59
问题 I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera. The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using mozGetUserMedia: Here you can see it at the top of the screen. I have tried searching through the options on the about:config page, but I can't find any setting that disables this. It only shows up on Windows, and not OS X. How can I disable this icon? 回答1:

How to Google Speech-to-Text using Blob sent from Browser to Nodejs Server

我只是一个虾纸丫 提交于 2021-02-07 06:24:27
问题 I am trying to set up a server to receive audio from a client browser using SocketIO , then process it through Google Speech-to-Text, and finally reply back to the client with the text. Originally and ideally, I wanted to set up to function somewhat like the tool on this page: https://cloud.google.com/speech-to-text/ I tried using getUserMedia and streaming it through SocketIO-Stream , but I couldn't figure out how to 'pipe' MediaStream . Instead, now I've decided to use MediaRecorder on the

How to Google Speech-to-Text using Blob sent from Browser to Nodejs Server

本秂侑毒 提交于 2021-02-07 06:23:57
问题 I am trying to set up a server to receive audio from a client browser using SocketIO , then process it through Google Speech-to-Text, and finally reply back to the client with the text. Originally and ideally, I wanted to set up to function somewhat like the tool on this page: https://cloud.google.com/speech-to-text/ I tried using getUserMedia and streaming it through SocketIO-Stream , but I couldn't figure out how to 'pipe' MediaStream . Instead, now I've decided to use MediaRecorder on the