Javascript Screen Capture Api Üzerinden Ses ve Görüntü Kaydı

navigator.mediaDevices.getDisplayMedia({video: true,DisplayCaptureSurfaceType:”browser”})
navigator.mediaDevices.getDisplayMedia({video: true,DisplayCaptureSurfaceType:"browser"}).then(stream => { console.log("Permission alındı.");}
videoElem.srcObject=stream;
mediarecorder=new MediaRecorder(stream);
mediarecorder.ondataavailable=function(e){chunks.push(e.data)}
mediarecorder.onstop=function(ev){let blob=new Blob(chunks,{type:"video/mp4"});let videourl=window.URL.createObjectURL(blob);}
https://gist.github.com/anilkay/a1200ad352162d9611163f6fecf57f42

Kaynaklar

--

--

--

Computer Engineer,Sociologist, CSE Master Student

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
anıl kaynar

anıl kaynar

Computer Engineer,Sociologist, CSE Master Student

More from Medium

Context and ‘this’ Basics in JS

Typescript: Type VS Interface

JavaScript Utility Methods in Detail