|
@@ -171,14 +171,6 @@ export default class RTC extends Listenable {
|
171
|
171
|
*/
|
172
|
172
|
this._maxFrameHeight = undefined;
|
173
|
173
|
|
174
|
|
- /**
|
175
|
|
- * The endpoint ID of currently pinned participant or <tt>null</tt> if
|
176
|
|
- * no user is pinned.
|
177
|
|
- * @type {string|null}
|
178
|
|
- * @private
|
179
|
|
- */
|
180
|
|
- this._pinnedEndpoint = null;
|
181
|
|
-
|
182
|
174
|
/**
|
183
|
175
|
* The endpoint IDs of currently selected participants.
|
184
|
176
|
*
|
|
@@ -291,8 +283,6 @@ export default class RTC extends Listenable {
|
291
|
283
|
// we want the notification to trigger even if userJid
|
292
|
284
|
// is undefined, or null.
|
293
|
285
|
try {
|
294
|
|
- this._channel.sendPinnedEndpointMessage(
|
295
|
|
- this._pinnedEndpoint);
|
296
|
286
|
this._channel.sendSelectedEndpointsMessage(
|
297
|
287
|
this._selectedEndpoints);
|
298
|
288
|
|
|
@@ -304,7 +294,6 @@ export default class RTC extends Listenable {
|
304
|
294
|
GlobalOnErrorHandler.callErrorHandler(error);
|
305
|
295
|
logger.error(
|
306
|
296
|
`Cannot send selected(${this._selectedEndpoint})`
|
307
|
|
- + `pinned(${this._pinnedEndpoint})`
|
308
|
297
|
+ `frameHeight(${this._maxFrameHeight}) endpoint message`,
|
309
|
298
|
error);
|
310
|
299
|
}
|
|
@@ -434,22 +423,6 @@ export default class RTC extends Listenable {
|
434
|
423
|
}
|
435
|
424
|
}
|
436
|
425
|
|
437
|
|
- /**
|
438
|
|
- * Elects the participant with the given id to be the pinned participant in
|
439
|
|
- * order to always receive video for this participant (even when last n is
|
440
|
|
- * enabled).
|
441
|
|
- * @param {stirng} id The user id.
|
442
|
|
- * @throws NetworkError or InvalidStateError or Error if the operation
|
443
|
|
- * fails.
|
444
|
|
- */
|
445
|
|
- pinEndpoint(id) {
|
446
|
|
- // Cache the value if channel is missing, till we open it.
|
447
|
|
- this._pinnedEndpoint = id;
|
448
|
|
- if (this._channel && this._channel.isOpen()) {
|
449
|
|
- this._channel.sendPinnedEndpointMessage(id);
|
450
|
|
- }
|
451
|
|
- }
|
452
|
|
-
|
453
|
426
|
/**
|
454
|
427
|
*
|
455
|
428
|
* @param eventType
|