flutter-webrtc / flutter-webrtc

WebRTC plugin for Flutter Mobile/Desktop/Web
MIT License
4.1k stars 1.12k forks source link

share screen #893

Open rezadevelopers2 opened 2 years ago

rezadevelopers2 commented 2 years ago

Hello, do you have a sample code for sharing a screen?

Dyadee commented 2 years ago

getUserMedia() async { final mediaConstraints = <String, dynamic>{ 'audio': false, 'video': {'displaySurface': 'application'} }; _localStream = await navigator.mediaDevices.getDisplayMedia(mediaConstraints); _localRenderer.srcObject = _localStream; }

rezadevelopers2 commented 2 years ago

Thanks, but what if there was a call and we wanted to share the screen?

getUserMedia() async { final mediaConstraints = <String, dynamic>{ 'audio': false, 'video': {'displaySurface': 'application'} }; _localStream = await navigator.mediaDevices.getDisplayMedia(mediaConstraints); _localRenderer.srcObject = _localStream; }

Thanks, but what if there was a call and we wanted to share the screen?

moinkhan780 commented 1 year ago

@rezadevelopers2 have you done screen sharing implementation?

brijeshbodariya commented 1 year ago

@rezadevelopers2 have you get any solution for screen sharing?