Sha256: fd52cd1a822fbb4043bdc82b8eeb2cacbce2c32b490e77a740f7f5a743baa6c5

Contents?: true

Size: 351 Bytes

Versions: 10

Compression:

Stored size: 351 Bytes

Contents

var session = OT.initSession(sessionId),
    publisher = OT.initPublisher("publisher");

session.connect(apiKey, token, function(err, info) {
  if(err) {
    alert(err.message || err);
  }
  session.publish(publisher);
});

session.on('streamCreated', function(event) {
  session.subscribe(event.stream, "subscribers", { insertMode : "append" });
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
opentok-2.4.0.beta.1 sample/Archiving/public/js/participant.js
opentok-2.3.4 sample/Archiving/public/js/participant.js
opentok-2.3.3 sample/Archiving/public/js/participant.js
opentok-2.3.2 sample/Archiving/public/js/participant.js
opentok-2.3.0 sample/Archiving/public/js/participant.js
opentok-2.2.4 sample/Archiving/public/js/participant.js
opentok-2.2.3 sample/Archiving/public/js/participant.js
opentok-2.2.2 sample/Archiving/public/js/participant.js
opentok-2.2.1 sample/Archiving/public/js/participant.js
opentok-2.2.0 sample/Archiving/public/js/participant.js