Open mikkokotila opened 5 years ago
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>
Following the installation instructions in https://github.com/muaz-khan/RTCMultiConnection-Server/wiki#install-using-npm and then trying to run the simple demo:
...does not work.