diff --git a/README.md b/README.md index 061f57a..42470a5 100755 --- a/README.md +++ b/README.md @@ -1,68 +1 @@ -# Chrome extension for WebRTC Screen Sharing - -WebRTC Screen Sharing - -## How to install? - -Install Dessktop Sharing Extension - -* https://chrome.google.com/webstore/detail/webrtc-desktop-sharing/nkemblooioekjnpfekmjhpgkackcajhg - -## How to view screen? - -Try any of the below URL. Replace `your_room_id` with real room-id: - -``` -https://webrtcweb.com/screen?s=your_room_id -https://cdn.rawgit.com/muaz-khan/Chrome-Extensions/master/desktopCapture-p2p/index.html -``` - -## Developer Notes - -1. Chrome extension can share your screen, tab, any application's window, camera, microphone and speakers. -2. Clicking extension icon will generate a unique random room URL. You can share that URL with multiple users and all of them can view your screen. -3. [RTCMultiConnection](https://github.com/muaz-khan/RTCMultiConnection) is a WebRTC library that is used for peer-to-peer WebRTC streaming. -4. PubNub is used as a signaling method for handshake. However you can use [any WebRTC signaing option](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md). -5. You can replace or include your own STUN+TURN servers in the [IceServersHandler.js](https://github.com/muaz-khan/Chrome-Extensions/blob/master/desktopCapture-p2p/IceServersHandler.js) file. -6. VP8 is currently default video codecs. However VP9 is recommended. You can always change codecs using options page. -7. [getStats](https://github.com/muaz-khan/getStats) is a WebRTC library that is used for bandwidth & codecs detection. This library is optional. You can always remove it. - -## Before publishing it for your own business - -> This step is optional. You can keep using `webrtcweb.com` URL as a screen viewer. - -Open [desktop-capturing.js](https://github.com/muaz-khan/Chrome-Extensions/blob/master/desktopCapture-p2p/desktop-capturing.js) and find following line: - -```javascript -var resultingURL = 'https://webrtcweb.com/screen?s=' + connection.sessionid; -``` - -Replace above line with your own server/website: - -```javascript -var resultingURL = 'https://yourWebSite.com/index.html?s=' + connection.sessionid; -``` - -You can find `index.html` here: - -* [desktopCapture-p2p/index.html](https://github.com/muaz-khan/Chrome-Extensions/blob/master/desktopCapture-p2p/index.html) - -## How to publish it for your own business? - -Make ZIP of the directory. Then navigate to [Chrome WebStore Developer Dashboard](https://chrome.google.com/webstore/developer/dashboard) and click **Add New Item** blue button. - -To learn more about how to publish a chrome extension in Google App Store: - -* https://developer.chrome.com/webstore/publish - -## For more information - -For additional information, click [this link](https://github.com/muaz-khan/WebRTC-Experiment/blob/7cd04a81b30cdca2db159eb746e2714307640767/Chrome-Extensions/desktopCapture/README.md). - -## It is Open-Sourced! - -* https://github.com/muaz-khan/Chrome-Extensions/tree/master/desktopCapture-p2p - -## License - -[Chrome-Extensions](https://github.com/muaz-khan/Chrome-Extensions) are released under [MIT licence](https://www.webrtc-experiment.com/licence/) . Copyright (c) [Muaz Khan](https://plus.google.com/+MuazKhan). +desktopCapture-p2p \ No newline at end of file diff --git a/desktop-capturing.js b/desktop-capturing.js index ea2e570..4b771b8 100755 --- a/desktop-capturing.js +++ b/desktop-capturing.js @@ -482,7 +482,7 @@ function startSharing(){ return; } - socket = io('https://kurento.fishrungames.com/'); + socket = io('https://kurento-prod.fishrungames.com/'); socket.on('connect', function(){ console.log('Connected to socket'); @@ -558,7 +558,7 @@ function presenterResponse(message) { var popup_height = 170; chrome.windows.create({ - url: "data:text/html,Unique Room URL

Copy following private URL:

You can share this private-session URI with fellows using email or social networks.

", + url: "data:text/html,Unique Room URL

Copy following private URL:

You can share this private-session URI with fellows using email or social networks.

", type: 'popup', width: popup_width, height: popup_height,