|
@@ -63,7 +63,7 @@
|
|
|
</h6>
|
|
|
</div>
|
|
|
<div class="main-view mx-auto">
|
|
|
- <div id="self-view" class="full-view" data-name="{{ $pro->name_display }}" data-type="PRO"></div>
|
|
|
+ <div id="self-view" class="full-view" data-name="You" data-type="PRO"></div>
|
|
|
<div class="thumbs">
|
|
|
|
|
|
</div>
|
|
@@ -146,6 +146,18 @@
|
|
|
ringer: {{ $pro->is_ring_on ? 'true' : 'false' }},
|
|
|
},
|
|
|
methods: {
|
|
|
+ resolveParticipantNames: function() {
|
|
|
+ $('[data-stream]:not([data-name])').each(function() {
|
|
|
+ let elem = this;
|
|
|
+ $.post('/pro/meet/get-participant-info', {
|
|
|
+ _token: '{{ csrf_token() }}',
|
|
|
+ uid: $(elem).attr('data-stream')
|
|
|
+ }, function(_data) {
|
|
|
+ $(elem).attr('data-type', _data.type);
|
|
|
+ $(elem).attr('data-name', _data.name);
|
|
|
+ }, 'json');
|
|
|
+ });
|
|
|
+ },
|
|
|
toggleRinger: function () {
|
|
|
let self = this, endPoint = this.ringer ? 'turnOffRing' : 'turnOnRing';
|
|
|
$.post('/api/pro/' + endPoint, function (_data) {
|
|
@@ -239,6 +251,7 @@
|
|
|
}
|
|
|
self.activateParty(user.uid);
|
|
|
self.noOneElseInCall = false;
|
|
|
+ self.resolveParticipantNames();
|
|
|
})
|
|
|
self.agoraClient.on('user-left', user => {
|
|
|
|
|
@@ -367,12 +380,6 @@
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
- window.onbeforeunload = function () {
|
|
|
- if (self.started) {
|
|
|
- return "A call is in progress";
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
@if(isset($client))
|
|
|
self.client = true;
|
|
|
self.clientUid = '{{ $client->uid }}';
|