@reactoo/watchtogether-sdk-js 2.5.63 → 2.5.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -594,11 +594,6 @@ const syncModule = function ({room, emitter} = {}) {
|
|
|
594
594
|
room.off('addLocalParticipant', handleAddLocalParticipant);
|
|
595
595
|
room.off('addRemoteParticipant', handleAddRemoteParticipant);
|
|
596
596
|
room.off('data', parseDataEvents);
|
|
597
|
-
|
|
598
|
-
if(typeof _playerInterface?.destroy === 'function') {
|
|
599
|
-
_playerInterface?.destroy()
|
|
600
|
-
}
|
|
601
|
-
|
|
602
597
|
_playerInterface = null;
|
|
603
598
|
|
|
604
599
|
_emitter.clear();
|
package/src/modules/wt-room.js
CHANGED
|
@@ -828,9 +828,9 @@ class RoomSession {
|
|
|
828
828
|
this._isDataChannelOpen = false;
|
|
829
829
|
this.isPublished = false;
|
|
830
830
|
this.emit('published', {status: false, hasStream: false});
|
|
831
|
-
this.emit('removeLocalParticipant', {id: handleId, userId: decodeJanusDisplay(handle.userId)?.userId});
|
|
831
|
+
this.emit('removeLocalParticipant', {id: handleId, userId: decodeJanusDisplay(handle.userId)?.userId, role: decodeJanusDisplay(handle.userId)?.role});
|
|
832
832
|
} else {
|
|
833
|
-
this.emit(this._getRemoveParticipantEventName(handleId), {id: handleId, userId: decodeJanusDisplay(handle.userId)?.userId});
|
|
833
|
+
this.emit(this._getRemoveParticipantEventName(handleId), {id: handleId, userId: decodeJanusDisplay(handle.userId)?.userId, role: decodeJanusDisplay(handle.userId)?.role});
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
if (removeHandle) {
|