Skip to content

Commit

Permalink
File sharing extension is updated & fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Nov 5, 2018
1 parent c9a32b9 commit a2e10b6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
8 changes: 6 additions & 2 deletions desktopCapture-p2p/background/setupWebRTCConnection.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
function setupWebRTCConnection(stream) {
// forcing RTCMultiConnection ONLY
// reason: webserver doesn't has enough memory and CPU to serve any media server
shareStreamUsingRTCMultiConnection(stream);

if (streaming_method === 'RTCMultiConnection') {
shareStreamUsingRTCMultiConnection(stream);
// shareStreamUsingRTCMultiConnection(stream);
}

if (streaming_method === 'AntMediaServer') {
shareStreamUsingAntMediaServer(stream);
// shareStreamUsingAntMediaServer(stream);
}
}
4 changes: 2 additions & 2 deletions desktopCapture-p2p/extension-pages/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ <h2>Codecs:</h2>
</div>
</div>

<div class="item">
<div class="item" style="display: none;"> <!-- disabled on setupWebRTCConnection.js -->
<h2>Streaming Methods:</h2>
<div class="custom-select" style="width:200px;">
<select id="streaming_method">
<option value="RTCMultiConnection" selected>Peer-to-Peer</option>
<option value="AntMediaServer">Ant-Media Server</option>
<option value="AntMediaServer">Media Server</option>
</select>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion desktopCapture-p2p/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"WebRTC Desktop Sharing",
"author":"Muaz Khan",
"version":"5.0",
"version":"5.2",
"manifest_version":2,
"minimum_chrome_version":"34",
"description":"WebRTC P2P HQ/HD screen-sharing. Share camera, microphone, speakers, full-screen, or software's screens.",
Expand Down
4 changes: 2 additions & 2 deletions file-sharing/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name" : "WebRTC File Sharing",
"short_name" : "FileSharing",
"author": "Muaz Khan",
"version" : "2.5",
"version" : "2.6",
"manifest_version" : 2,
"minimum_chrome_version": "34",
"description" : "Instant/Private/Reliable file sharing across all devices(mobile/desktop), among single or multiple users.",
"homepage_url": "https://rtcxp.com/fs",
"homepage_url": "https://webrtcweb.com/fs",
"background": {
"scripts": ["background.js"],
"persistent": false
Expand Down
15 changes: 8 additions & 7 deletions file-sharing/rmc-files-handler.js

Large diffs are not rendered by default.

0 comments on commit a2e10b6

Please sign in to comment.