Skip to content

Commit

Permalink
Added rtcmulticonnection-v3@3.2.92 Now preferring VP9 in Chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Feb 25, 2016
1 parent f7b8af7 commit b3adb38
Show file tree
Hide file tree
Showing 13 changed files with 868 additions and 307 deletions.
5 changes: 2 additions & 3 deletions Gruntfile.js
Expand Up @@ -30,12 +30,11 @@ module.exports = function(grunt) {
'dev/Plugin.EveryWhere.js',

'dev/RTCPeerConnection.js',
// 'dev/ios-hacks.js', // to support ios
// 'dev/CodecsHandler.js', // to force H264 or codecs other than opus
'dev/ios-hacks.js', // to support ios
'dev/CodecsHandler.js', // to force H264 or codecs other than opus

'dev/OnIceCandidateHandler.js',
'dev/IceServersHandler.js',
'dev/BandwidthHandler.js',

'dev/gumadapter.js',
'dev/getUserMedia.js',
Expand Down
36 changes: 24 additions & 12 deletions README.md
Expand Up @@ -13,6 +13,14 @@
Fetch latest code:

```
git clone https://github.com/muaz-khan/RTCMultiConnection.git ./RTCMultiConnection
cd RTCMultiConnection
sudo npm install --save-dev
```

Or:

**Download via Github** (as `ZIP` or `.js`): [https://github.com/muaz-khan/RTCMultiConnection/releases](https://github.com/muaz-khan/RTCMultiConnection/releases)

Or:
Expand Down Expand Up @@ -68,7 +76,7 @@ All files from `/dist` directory are available on CDN: `https://cdn.webrtc-exper
<script src="https://cdn.webrtc-experiment.com:443/rmc3.min.js"></script>

<!-- or specific version -->
<script src="https://github.com/muaz-khan/RTCMultiConnection/releases/download/3.2.91/rmc3.min.js"></script>
<script src="https://github.com/muaz-khan/RTCMultiConnection/releases/download/3.2.92/rmc3.min.js"></script>
```

If you're sharing files, you also need to link:
Expand All @@ -80,7 +88,7 @@ If you're sharing files, you also need to link:
<script src="https://cdn.webrtc-experiment.com:443/rmc3.fbr.min.js"></script>

<!-- or specific version -->
<script src="https://github.com/muaz-khan/RTCMultiConnection/releases/download/3.2.91/rmc3.fbr.min.js"></script>
<script src="https://github.com/muaz-khan/RTCMultiConnection/releases/download/3.2.92/rmc3.fbr.min.js"></script>
```

> You can link multiple files from `dev` directory. Order doesn't matters.
Expand Down Expand Up @@ -1188,16 +1196,8 @@ var connection = new RTCMultiConnection(roomId, {

## Wanna use H264 for video?

```html
<script src="/dev/CodecsHandler.js"></script>
<script>
// in your HTML file
connection.processSdp = function(sdp) {
// modify sdp to remove vp8/vp9
sdp = CodecsHandler.removeVPX(sdp);
return sdp;
};
</script>
```javascript
connection.codecs.video = 'H264';
```

## Disable Video NACK
Expand All @@ -1214,6 +1214,18 @@ connection.processSdp = function(sdp) {
</script>
```

## Wanna use VP8 for video?

```javascript
connection.codecs.video = 'VP8';
```

## Wanna use G722 for audio?

```javascript
connection.codecs.audio = 'G722';
```

## Prioritize Codecs

```html
Expand Down

0 comments on commit b3adb38

Please sign in to comment.