|
@@ -115,7 +115,7 @@
|
|
|
|
|
|
otSessionId: '',
|
|
otSessionId: '',
|
|
|
|
|
|
- publisher: null,
|
|
|
|
|
|
+ publisher: false,
|
|
|
|
|
|
checkingForNextPatient: false,
|
|
checkingForNextPatient: false,
|
|
noNextPatient: false,
|
|
noNextPatient: false,
|
|
@@ -380,7 +380,7 @@
|
|
height: '100%',
|
|
height: '100%',
|
|
};
|
|
};
|
|
var publisher = OT.initPublisher('self-view', publisherOptions, self.handleOpenTokError);
|
|
var publisher = OT.initPublisher('self-view', publisherOptions, self.handleOpenTokError);
|
|
- self.publisher = publisher;
|
|
|
|
|
|
+
|
|
publisher.on('streamCreated', function (event) {
|
|
publisher.on('streamCreated', function (event) {
|
|
var selfView = $('#self-view');
|
|
var selfView = $('#self-view');
|
|
selfView.attr('data-stream', event.stream.id);
|
|
selfView.attr('data-stream', event.stream.id);
|
|
@@ -437,7 +437,7 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ self.publisher = publisher;
|
|
|
|
|
|
// Connect to the session
|
|
// Connect to the session
|
|
self.otSession.connect(token, function callback(error) {
|
|
self.otSession.connect(token, function callback(error) {
|