RTCMultiConnection-Server icon indicating copy to clipboard operation
RTCMultiConnection-Server copied to clipboard

server does not work following the simple example

Open mikkokotila opened this issue 5 years ago • 2 comments

Following the installation instructions in https://github.com/muaz-khan/RTCMultiConnection-Server/wiki#install-using-npm and then trying to run the simple demo:

<script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
<script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>

<script>
var connection = new RTCMultiConnection();

// this line is VERY_important
connection.socketURL = 'http://localhost:9001/';

// if you want audio+video conferencing
connection.session = {
    audio: true,
    video: true
};

connection.openOrJoin('test');
</script>

...does not work.

mikkokotila avatar Mar 16 '19 16:03 mikkokotila

try this

<script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
<script src="https://rtcmulticonnection.herokuapp.com/node_modules/webrtc-adapter/out/adapter.js"></script>
<script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>

<script>
var connection = new RTCMultiConnection();

// this line is VERY_important
connection.socketURL = 'http://localhost:9001/';

// if you want audio+video conferencing
connection.session = {
        audio: true,
        video: false
    };
    connection.mediaConstraints = {
        audio: true,
        video: false
    };
    connection.sdpConstraints.mandatory = {
        OfferToReceiveAudio: true,
        OfferToReceiveVideo: false
    };
connection.openOrJoin('testroom');
</script>

FifineHex avatar Jun 04 '19 20:06 FifineHex

https://medium.com/@aideedprogrammer/video-broadcast-webrtc-using-ionic-apps-14affc0a8369

wanaideed avatar Apr 06 '22 03:04 wanaideed