Commit 2df6f93c authored by lazorfuzz's avatar lazorfuzz
Browse files

Remove getscreenmedia dependency

parent 7308e766
......@@ -69,18 +69,9 @@ class Peer extends WildEmitter {
this.pc.on('signalingStateChange', this.emit.bind(this, 'signalingStateChange'));
this.logger = this.parent.logger;
// handle screensharing/broadcast mode
if (options.type === 'screen') {
if (this.parent.localScreens && this.parent.localScreens[0] && this.sharemyscreen) {
this.logger.log('adding local screen stream to peer connection');
this.pc.addStream(this.parent.localScreens[0]);
this.broadcaster = options.broadcaster;
}
} else {
this.parent.localStreams.forEach((stream) => {
self.pc.addStream(stream);
});
}
this.parent.localStreams.forEach((stream) => {
self.pc.addStream(stream);
});
this.on('channelOpen', (channel) => {
});
......
......@@ -2373,10 +2373,6 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"
getscreenmedia@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/getscreenmedia/-/getscreenmedia-5.0.0.tgz#6a059d6bb4213f826309b3f32ca1ac091e2892e2"
glob-base@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment