I want to let the user share his screen, I use getDisplayMedia() to let the user start sharing and it let him choose entire screen or chrome … etc. so my question is: can I let the user always choose the entire screen, like not giving him the option of other type sharing like window … like putting constraints on it or something I tried displaySurface = 'monitor' but it didn't work
Entire screen sharing Media Stream getDiplayMedia()
2.4k views Asked by fahmawiFloki At
1
There are 1 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in MEDIASTREAM
- Get a <video/> element audio without having to play the video
- Why is this AudioWorklet to MP3 code producing different results on Chromium and Firefox?
- MediaStream error obstructs audio recording from microphone
- Piping TTS to WHIP
- How to convert ArrayBuffer sent from websocket into a MediaStream, and then transmit it to webrtc server via peerConnection.addTrack?
- Transform camera stream and send to others (even from inactive tab / app)
- Microphone, the sound appears only after adjusting the volume
- WebRTC: Peers Receive MediaStreamTrack with enabled Property as True Despite Being Set to False Locally and Confirmed
- How encapsulate to the function navigator.mediaDevices.getUserMedia?
- can't find media-streams from non-calling peers in multi-party video conference with socket.io and peer.js
- ToneJS PitchShift with MediaStream
- Why PeerJs changes MediaStream when sending it to someone?
- Video stuck in recording when resume camera after turning off
- How to resume media stream after stopping this
- Video recorded using MediaRecorder Web API comes with audio sped up
Related Questions in SCREENSHARING
- Screen Capture API _ Set a specific Screen
- In SampleHandler class for BroadcastUploadExtension, my broadcastFinished method not calling but broadcastStarted is calling, someone help me
- WebRTC - Screen Sharing
- How to overlay widget on top of the flutter app with getx Route. ( show border and dialog to all screen while screen share)
- Show both Screen Sharing and Camera Feed in Agora Video Call Sdk
- How can i implement screen sharing in flutter using Agora?
- agora web sdk (video calling) remote user screen sharing status
- Screen-sharing in C# Windows Form using TCP: half screen glitched out
- How to implement screen sharing in flutter? I seen lot of solution implement screen sharing in android, but not for flutter
- How to disable laptop sound while streaming(screen sharing) via webRTC?
- SIP registration using PjSip library over TCP in Android is not working
- Embed a shared live windows application within a Power point slide?
- DW service screen showing Nvidia logo
- Cannot connect from WebRTC with Free switch server (SIP) - Android
- C# Windows.Media.Transcoding outputting video stream instead of a file
Related Questions in MEDIADEVICES
- navigator.mediaDevices.enumerateDevices how to get currently connected/active devices
- Permissions policy violation in Chrome-based browsers while accessing camera
- How to record screen + tab audio (internal audio) + system mic audio in ReactJS
- How to create and write to a virtual video device on Linux using C?
- On iOS: User allows camera but the video element is blank & console error "Unhandled Promise Rejection: NotAllowedError"
- How to implement micro button and camera button like video call app?
- HTML video element don`t display content and it is black screen on Safari 15.6.1
- Firefox not listing all audio output devices
- navigator.mediaDevices.enumerateDevices() shows audioinput but not videoinput from capture card
- How to create sound from the microphone in JavaScript and play it in real-time using Java?
- navigator.mediaDevices.getUserMedia doesn't work on macos catalyst WKWebView
- Drawing frames using requestAnimationFrame when tab is inactive for screen recording with getUserMedia in the Chrome
- Problems with react-media-recorder staying stuck at IDLE
- Is there a way to add constraints to UserMedia using Tone.js?
- CanvasRenderingContext2D.drawImage() generating distorted image
Related Questions in GET-DISPLAY-MEDIA
- Media streams capturing issue in MV3 (chrome extension) with respect to constraints
- Screen Sharing safari
- Javascript: how to stop a screen share of a window without stopping that windows's own screen share?
- WebRTC Recording Issue
- How can screen sharing (current tab) be performed without prompting screen sharing dialog box in chrome extension in manifest V3?
- MediaRecorder convert blob to MP4 for PPTXGenJS video
- Can I allow only fullscreen with getDisplayMedia?
- How do I remove the top bar that appears when sharing a tab using getDisplayMedia on Chrome?
- getDisplayMedia is giving "DOMException: The associated Track is in an invalid state"
- How to tell what kind of screen sharing the user selected?
- Screen capture as webgl texture not correct format
- Don't show .getDisplayMedia() screen select + start pop-up
- Safari 15, Reactjs: Unhandled Rejection (InvalidAccessError): getDisplayMedia must be called from a user gesture handler in Safari MacOs
- invalidAccessError: getDisplayMedia must be called from a user gesture handler - Safari
- Disable stop share prompt box during screen sharing by getDisplayMedia()
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can do work around.
You can check
displaySurface,if it is notmonitor(entire screen) then you can reject the promise and inside reject handler you can stop and start again.