HenrikJoreteg / webrtc.js

WebRTC abstraction for managing it simple to manage multiple peer connections of various types.
http://simplewebrtc.com
158 stars 33 forks source link

how to use signal master #3

Closed gurumelo closed 10 years ago

gurumelo commented 10 years ago

Sorry Henrik. When i install signal master an run... How to configure webrtc.js for use your own signal master?

Thank you

HenrikJoreteg commented 10 years ago

I think you mean simplewebrtc: http://simplewebrtc.com/

This repo doesn't make any assumptions about what you want to do for signaling, but simplewebrtc does.

All you have to do is pass a url option to the simplewebrtc object like this:

var webrtc = new SimpleWebRTC({
    url: 'http://yoursignalmasterserver.com',
    // the id/element dom element that will hold "our" video
    localVideoEl: 'localVideo',
    // the id/element dom element that will hold remote videos
    remoteVideosEl: 'remotesVideos',
    // immediately ask for camera access
    autoRequestMedia: true
});
gurumelo commented 10 years ago

Thank you very much