Skip to content

Commit

Permalink
Now, any signaling-gateway can be used within any WebRTC Experiment!
Browse files Browse the repository at this point in the history
https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md

1. Merged pull muaz-khan#142 from @kwv and closed muaz-khan#142.
2. RecordRTC fixed for faster video recording.

Notes:
1. MRecordRTC currently has issues for audio/video sync; also voice
disturbance.
2. Please use RecordRTC directly for recording until MRecordRTC issue
(muaz-khan#143) gets fixed.
3. Try RecordRTC-to-Nodejs for audio/video sync & merging.
  • Loading branch information
muaz-khan committed Jan 16, 2014
1 parent a2a26c7 commit c2d4317
Show file tree
Hide file tree
Showing 19 changed files with 607 additions and 467 deletions.
8 changes: 8 additions & 0 deletions DataChannel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ channel.direction = 'many-to-many';

=

For signaling; please check following page:

https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md

Remember, you can use any signaling implementation exists out there without modifying any single line! Just skip below code and open [above link](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md)!

=

##### Use [your own socket.io for signaling](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/socketio-over-nodejs)

```javascript
Expand Down
8 changes: 8 additions & 0 deletions Pluginfree-Screen-Sharing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ Browsers who don't understand {chromeMediaSource: 'screen'} constraint will simp
=
For signaling; please check following page:
https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md
Remember, you can use any signaling implementation exists out there without modifying any single line! Just skip below code and open [above link](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md)!
=
#### Browser Support
[WebRTC plugin free screen sharing](https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/) experiment works fine on following web-browsers:
Expand Down
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Realtime/Working [WebRTC Experiments](https://www.webrtc-experiment.com/)

1. It is a repository of uniquely experimented WebRTC demos; written by <a href="https://github.com/muaz-khan">Muaz Khan</a>!
2. No special requirement! Just WebRTC supported browser (e.g. chrome/firefox on desktop/android)
2. No special requirement! Just WebRTC supported browser (e.g. chrome/firefox/opera on desktop/android)
3. These demos/experiments are entirely client-side; i.e. no server installation needed!

=
Expand Down Expand Up @@ -253,6 +253,53 @@ document.getElementById('openNewSessionButton').onclick = function() {

=

##### `openSignalingChannel` for [RTCMultiConnection.js](http://www.RTCMultiConnection.org/docs/) and [DataChanel.js](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/DataChannel) (Client-Side Code)

```javascript
var channels = {};
var currentUserUUID = Math.round(Math.random() * 60535) + 5000;
var socketio = io.connect('http://localhost:8888/');

socketio.on('message', function(data) {
if(data.sender == currentUserUUID) return;

if (channels[data.channel] && channels[data.channel].onmessage) {
channels[data.channel].onmessage(data.message);
};
});

connection.openSignalingChannel = function (config) {
var channel = config.channel || this.channel;
channels[channel] = config;

if (config.onopen) setTimeout(config.onopen, 1000);
return {
send: function (message) {
socketio.emit('message', {
sender: currentUserUUID,
channel: channel,
message: message
});
},
channel: channel
};
};
```

=

##### Nodejs/Socketio Server-Side Code

```javascript
io.sockets.on('connection', function (socket) {
socket.on('message', function (data) {
socket.broadcast.emit('message', data);
});
});
```

=

##### Browser Support

[WebRTC Experiments](https://www.webrtc-experiment.com/) works fine on following web-browsers:
Expand Down
10 changes: 6 additions & 4 deletions RTCMultiConnection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<img src="http://www.rtcmulticonnection.org/img/documentation.png" />
</a>

<a href="http://www.rtcmulticonnection.org/">
<img src="http://www.rtcmulticonnection.org/img/browser-support.png" />
</a>

=

### Browser Support
Expand Down Expand Up @@ -46,6 +42,12 @@ document.getElementById('openNewSessionButton').onclick = function() {

=

For signaling; please check following page:

https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md

=

##### Below documentation is old. Follow above links.

=
Expand Down
Loading

0 comments on commit c2d4317

Please sign in to comment.