|
@@ -164,7 +164,6 @@
|
|
|
|
|
|
self.otSession = OT.initSession(apiKey, sessionId);
|
|
|
|
|
|
- // TODO: Subscribe to remote stream
|
|
|
self.otSession.on('streamCreated', function streamCreated(event) {
|
|
|
var subscriberOptions = {
|
|
|
insertMode: 'append',
|
|
@@ -178,6 +177,7 @@
|
|
|
$('#remote-view').removeClass('thumb-view').addClass('full-view');
|
|
|
self.pro = true;
|
|
|
@else
|
|
|
+ self.joinMeetingAsPro();
|
|
|
self.client = true;
|
|
|
@endif
|
|
|
|
|
@@ -273,6 +273,25 @@
|
|
|
_done();
|
|
|
}, 'json');
|
|
|
@endif
|
|
|
+ },
|
|
|
+ joinMeetingAsPro: function() {
|
|
|
+ var self = this;
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: '/api/clientVideoVisit/joinVideoVisitAsMcpPro',
|
|
|
+ headers: {
|
|
|
+ 'sessionKey': localStorage.sessionKey
|
|
|
+ },
|
|
|
+ data: {uid: self.clientUid},
|
|
|
+ dataType: 'json'
|
|
|
+ })
|
|
|
+ .done(function (_data) {
|
|
|
+ console.log(_data);
|
|
|
+ })
|
|
|
+ .fail(function (_data) {
|
|
|
+ console.warn(_data);
|
|
|
+ alert(_data.message);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|