getusermedia

Why getUserMedia() showing permission denied error in chrome

倖福魔咒の 提交于 2019-12-04 13:12:13
I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & compatible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing. Error details in console as follows: (program):84 navigator.getUserMedia error: PermissionDeniedError(error name) I am using chrome version 47.0.2526.80 .I am using http for this project. I am also getting warning to switching my application to a secure

WebRTC/getUserMedia: How to properly mute local video?

耗尽温柔 提交于 2019-12-04 11:41:31
问题 I'm trying to implement the functionality for muting the local video MediaStreamTrack in my WebRTC application. Here's how I'm approaching this: function muteVideo() { if (this._localStream && this._localStream.getVideoTracks().length > 0) { this._localStream.getVideoTracks()[0].enabled = false; } } In Firefox, the <video> element to which the local stream is attached correctly renders blackness on mute. In Chrome, blackness is not rendered but the picture freezes. However, in both browsers,

Display getUserMediaStream live video with media stream extensions (MSE)

孤街醉人 提交于 2019-12-04 05:28:29
I am trying to display a MediaStream taken from a webcam using getUserMedia, and to relay it to a remote peer using whatever mechanism possible for it to be played (as an experiment). I am not using webRTC directly as I want control over the raw data. The issue I encounter is that my video element displays nothing, and I don't get any errors back. I am using Chrome Version 51.0.2704.103 (64-bit) on Elementary OS (Ubuntu 14.04 based linux OS). As a sidenote, if I record all the blobs into an array and then create a new blob and set the video's src element to URL.createObjectUrl(blob), it

Firefox 22 mozGetUserMedia using 'screen' as device source

三世轮回 提交于 2019-12-04 04:38:31
There have been some buzz in the air for the WebRTC support in Firefox 22. This is for someone who's in the know about Firefox development: Are there any support in Firefox for desktop screen capture todate? The technology does exist for Chrome 26+, which provides experimental support for screen capturing (using 'screen' as device source); the code (snippet) for making this happen is: // select any supported getUserMedia function navigator.getMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); // if getUserMedia is not

Saving desktopCapturer to video file in Electron

拟墨画扇 提交于 2019-12-03 14:15:49
问题 The desktopCapturer api example shows how to write a screen capture stream to a <video> element. // In the renderer process. var desktopCapturer = require('electron').desktopCapturer; desktopCapturer.getSources({types: ['window', 'screen']}, function(error, sources) { if (error) throw error; for (var i = 0; i < sources.length; ++i) { if (sources[i].name == "Electron") { navigator.webkitGetUserMedia({ audio: false, video: { mandatory: { chromeMediaSource: 'desktop', chromeMediaSourceId:

Get consistent audio quality with getUserMedia using different browsers

若如初见. 提交于 2019-12-03 13:33:51
问题 What I'm doing I'm using the getUserMedia API to record audio in the browser and then send this audio to a websocket server. Furthermore, to test the recordings, I use soundflower on a Mac as an input device, so I can play a wave file, instead of speaking into a microphone. client side (JavaScript) window.AudioContext = window.AudioContext || window.webkitAudioContext; navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; var

Capture video from several webcams with getUserMedia

我只是一个虾纸丫 提交于 2019-12-03 12:27:22
问题 I would like to capture video from multiple webcams connected to my pc. It is easy enough to use one web-cam, but how can I get video streams from multiple sources? Is it possible to select which camera to use for one stream? navigator.getUserMedia ({ video: true }, function (oMedia) { var video = document.getElementById ('tVideo1'); video.src = window.URL.createObjectURL (oMedia); }); 回答1: I was intrigued by your question, so I started researching 'getusermedia multiple cameras'. After a

Blob video duration metadata [duplicate]

廉价感情. 提交于 2019-12-03 11:56:20
问题 This question already has answers here : How can I add predefined length to audio recorded from MediaRecorder in Chrome? (3 answers) Closed last year . I am writing a software that manipulates camera stream video in firefox. I am generating a Blob with video type recorded with MediaRecorder API . What i am doing to save the blob as video in local storage is using FileSaver library : FileSaver.saveAs(BlobVideo,"video.mp4"); It seems the video doesnt have any max duration, so i cannot navigate

Encode audio from getUserMedia() to a .OGG in JavaScript [duplicate]

心不动则不痛 提交于 2019-12-03 10:03:18
问题 This question already has answers here : converting .wav file to .ogg in javascript (4 answers) Closed 5 years ago . So I have this HTML5 project I'm working on, where I'm converting an iOS app to a web-based one. Accompanying part of the content creation of the app is an audio recording, which I'm trying to replicate in JavaScript without the use of plugins; so far, I've been able to record audio from getUserMedia(), and turn it into a WAV thanks to Recorder.js. Now, however, I'm a bit lost.

WebRTC/getUserMedia: How to properly mute local video?

和自甴很熟 提交于 2019-12-03 08:10:53
I'm trying to implement the functionality for muting the local video MediaStreamTrack in my WebRTC application. Here's how I'm approaching this: function muteVideo() { if (this._localStream && this._localStream.getVideoTracks().length > 0) { this._localStream.getVideoTracks()[0].enabled = false; } } In Firefox, the <video> element to which the local stream is attached correctly renders blackness on mute. In Chrome, blackness is not rendered but the picture freezes. However, in both browsers, the camera's green light stays on , which is clearly undesired behavior. (I want my users to see that