Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Now heroku URL also uses latest socket.io.js.
  • Loading branch information
muaz-khan committed Nov 5, 2016
1 parent c6071bd commit 67bb09a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rtcmulticonnection",
"description": "RTCMultiConnection is a WebRTC JavaScript wrapper library runs top over RTCPeerConnection API to provide multi-session establishment scenarios.",
"version": "3.4.1",
"version": "3.4.2",
"authors": [
{
"name": "Muaz Khan",
Expand Down
7 changes: 6 additions & 1 deletion dev/StreamsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ var StreamsHandler = (function() {
var mediaElement = connection.streamEvents[stream.streamid].mediaElement;
mediaElement.volume = 0;
afterEach(200, 5, function() {
mediaElement.volume += .20;
try {
mediaElement.volume += .20;
}
catch(e) {
mediaElement.volume = 1;
}
});
}
}
Expand Down
8 changes: 7 additions & 1 deletion docs/how-to-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ If you're sharing files, you also need to link:

> You can link multiple files from `dev` directory. Order doesn't matters.
Use socket.io:

```html
<script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>
```

## Set different socket URL

By default, RTCMultiConnection uses default port of your domain.
Expand Down Expand Up @@ -62,7 +68,7 @@ connection.socketURL = 'https://rtcmulticonnection.herokuapp.com:443/';

Here is a demo explaining how to use above `socketURL`:

* [https://jsfiddle.net/zd9Lsdfk/](https://jsfiddle.net/zd9Lsdfk/)
* https://jsfiddle.net/zd9Lsdfk/50/

## Integrate in your own applications?

Expand Down
7 changes: 3 additions & 4 deletions docs/ios-android.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# iOS and Android

Please check these docs instead:
Please check these docs as well:

# 1) [Write iOS apps using RTCMultiConnection](http://www.rtcmulticonnection.org/docs/Write-iOS-Apps/)

# 2) [Write Android apps using RTCMultiConnection](http://www.rtcmulticonnection.org/docs/Write-Android-Apps/)
* [Write iOS apps using RTCMultiConnection](http://www.rtcmulticonnection.org/docs/Write-iOS-Apps/)
* [Write Android apps using RTCMultiConnection](http://www.rtcmulticonnection.org/docs/Write-Android-Apps/)

----

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rtcmulticonnection-v3",
"preferGlobal": false,
"version": "3.4.1",
"version": "3.4.2",
"author": {
"name": "Muaz Khan",
"email": "[email protected]",
Expand All @@ -16,6 +16,9 @@
"scripts": {
"start": "node server.js"
},
"engines": {
"node": "7.0.0"
},
"main": "RTCMultiConnection.js",
"keywords": [
"peer-to-peer",
Expand Down
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// Documentation - github.com/muaz-khan/RTCMultiConnection

// Please use HTTPs on non-localhost domains.
var isUseHTTPs = false && !(!!process.env.PORT || !!process.env.IP);

// user-guide: change port via "config.json"
Expand Down

0 comments on commit 67bb09a

Please sign in to comment.