|
@@ -26,20 +26,6 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
- {{--
|
|
|
|
- <div v-show="!videoActive" class="align-items-center justify-content-center py-3 border-bottom" style="display: flex;">
|
|
|
|
- <button class="btn btn-sm btn-primary px-4 font-weight-bold stag-primary-bg stag-primary-border"
|
|
|
|
- v-on:click.prevent="nextPatient()"
|
|
|
|
- :disabled="client || checkingForNextPatient || started || !(patientInQueue && !started)">Next Patient</button>
|
|
|
|
- <span v-if="patientInQueue && !started" class="text-success text-sm ml-3 small">
|
|
|
|
- <i class="fa fa-circle"></i>
|
|
|
|
- </span>
|
|
|
|
- <span v-if="!patientInQueue && !started" class="text-secondary text-sm ml-3 small cancelled-item">
|
|
|
|
- <i class="fa fa-circle"></i>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- --}}
|
|
|
|
-
|
|
|
|
<div class="py-2 d-flex align-items-center justify-content-center border-bottom">
|
|
<div class="py-2 d-flex align-items-center justify-content-center border-bottom">
|
|
<a href="#" v-if="ringer" v-on:click.prevent="toggleRinger()"
|
|
<a href="#" v-if="ringer" v-on:click.prevent="toggleRinger()"
|
|
class="font-weight-bold btn btn-sm btn-success">
|
|
class="font-weight-bold btn btn-sm btn-success">
|
|
@@ -129,12 +115,6 @@
|
|
|
|
|
|
clientUid: '',
|
|
clientUid: '',
|
|
|
|
|
|
- otSessionId: '',
|
|
|
|
-
|
|
|
|
- publisher: false,
|
|
|
|
-
|
|
|
|
- otSession: false,
|
|
|
|
-
|
|
|
|
selfUserType: 'PRO',
|
|
selfUserType: 'PRO',
|
|
noOneElseInCall: true,
|
|
noOneElseInCall: true,
|
|
patientInQueue: false,
|
|
patientInQueue: false,
|
|
@@ -237,11 +217,6 @@
|
|
var remoteElem = $('<div id="' + remoteViewID + '" class="remote-view thumb-view" data-stream="' + user.uid + '"></div>');
|
|
var remoteElem = $('<div id="' + remoteViewID + '" class="remote-view thumb-view" data-stream="' + user.uid + '"></div>');
|
|
remoteElem.appendTo('.thumbs');
|
|
remoteElem.appendTo('.thumbs');
|
|
|
|
|
|
- // TODO
|
|
|
|
- // if (connectionData.type === 'CLIENT') {
|
|
|
|
- // self.client = true;
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
if (!self.startTime) {
|
|
if (!self.startTime) {
|
|
self.startTime = new Date().getTime();
|
|
self.startTime = new Date().getTime();
|
|
window.setInterval(function () {
|
|
window.setInterval(function () {
|
|
@@ -271,12 +246,6 @@
|
|
|
|
|
|
$('[data-stream="' + user.uid + '"]').remove();
|
|
$('[data-stream="' + user.uid + '"]').remove();
|
|
|
|
|
|
- // TODO:
|
|
|
|
- // var connectionData = JSON.parse(data);
|
|
|
|
- // if (connectionData.type === 'CLIENT') {
|
|
|
|
- // self.client = false;
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
// if no other parties in call, hang up
|
|
// if no other parties in call, hang up
|
|
if (!$('[data-stream]:not([data-stream="' + {{ $session->id }} + '"])').length) {
|
|
if (!$('[data-stream]:not([data-stream="' + {{ $session->id }} + '"])').length) {
|
|
console.warn('No other parties in the call!');
|
|
console.warn('No other parties in the call!');
|
|
@@ -306,23 +275,6 @@
|
|
|
|
|
|
_initAgora();
|
|
_initAgora();
|
|
|
|
|
|
- // TODO:
|
|
|
|
- // self disconnected
|
|
|
|
- /*self.otSession.on('sessionDisconnected', function sessionDisconnected(event) {
|
|
|
|
- console.log('You were disconnected from the session.', event.reason);
|
|
|
|
-
|
|
|
|
- // turn pro video off
|
|
|
|
- $.post('/api/clientVideoVisit/turnProVideoOff', {}, function (_data) {
|
|
|
|
- console.log(_data);
|
|
|
|
-
|
|
|
|
- // stop heart beat
|
|
|
|
- if (self.heartbeatTimer) {
|
|
|
|
- window.clearInterval(self.heartbeatTimer);
|
|
|
|
- self.heartbeatTimer = false;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- */
|
|
|
|
},
|
|
},
|
|
joinMeetingAsPro: function (_type) {
|
|
joinMeetingAsPro: function (_type) {
|
|
var self = this;
|
|
var self = this;
|