Devendra
Devendra

Reputation: 11

Is it possible to WebRTC Screen sharing from chrome without using extension?

We are able to share our screen with remote user using Mozilla quantum browser but not able to share screen using chrome browser. So can we share the screen with remote user without using any third party extensions on chrome?

Upvotes: 1

Views: 1180

Answers (2)

Footniko
Footniko

Reputation: 2752

Nowadays it's possible!

let stream = null;
try {
  stream = await navigator.mediaDevices.getDisplayMedia({ video: true, audio: true });
} catch(err) {
  console.warn("Error: " + err);
}
console.debug(stream);

Where stream is an instance of MediaStream interface (just the same as you'd get it with getUserMedia()).

Upvotes: 3

Tsahi Levent-Levi
Tsahi Levent-Levi

Reputation: 2386

No you can't.

Chrome places the extension as a prerequisite to be able to share your screen.

Upvotes: 2

Related Questions