Vijayakrishnan 4 éve
szülő
commit
fc34f2a4d3
1 módosított fájl, 0 hozzáadás és 48 törlés
  1. 0 48
      resources/views/app/video/call.blade.php

+ 0 - 48
resources/views/app/video/call.blade.php

@@ -26,20 +26,6 @@
         </div>
         @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">
             <a href="#" v-if="ringer" v-on:click.prevent="toggleRinger()"
                class="font-weight-bold btn btn-sm btn-success">
@@ -129,12 +115,6 @@
 
                     clientUid: '',
 
-                    otSessionId: '',
-
-                    publisher: false,
-
-                    otSession: false,
-
                     selfUserType: 'PRO',
                     noOneElseInCall: true,
                     patientInQueue: false,
@@ -237,11 +217,6 @@
                                 var remoteElem = $('<div id="' + remoteViewID + '" class="remote-view thumb-view" data-stream="' + user.uid + '"></div>');
                                 remoteElem.appendTo('.thumbs');
 
-                                // TODO
-                                // if (connectionData.type === 'CLIENT') {
-                                //     self.client = true;
-                                // }
-
                                 if (!self.startTime) {
                                     self.startTime = new Date().getTime();
                                     window.setInterval(function () {
@@ -271,12 +246,6 @@
 
                                 $('[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 (!$('[data-stream]:not([data-stream="' + {{ $session->id }} + '"])').length) {
                                     console.warn('No other parties in the call!');
@@ -306,23 +275,6 @@
 
                         _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) {
                         var self = this;