vani-meeting-client 2.0.9 → 2.1.0
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.
|
@@ -886,11 +886,19 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
886
886
|
SFUHandler.prototype.cleanup = function (shouldStopTracks) {
|
|
887
887
|
if (shouldStopTracks === void 0) { shouldStopTracks = true; }
|
|
888
888
|
if (this.sendTransport) {
|
|
889
|
-
|
|
889
|
+
try {
|
|
890
|
+
this.sendTransport.close();
|
|
891
|
+
}
|
|
892
|
+
catch (err) {
|
|
893
|
+
}
|
|
890
894
|
this.sendTransport = undefined;
|
|
891
895
|
}
|
|
892
896
|
if (this.consumerTransport) {
|
|
893
|
-
|
|
897
|
+
try {
|
|
898
|
+
this.consumerTransport.close();
|
|
899
|
+
}
|
|
900
|
+
catch (err) {
|
|
901
|
+
}
|
|
894
902
|
this.consumerTransport = undefined;
|
|
895
903
|
}
|
|
896
904
|
if (this.producers) {
|
|
@@ -898,26 +906,42 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
898
906
|
var _a;
|
|
899
907
|
try {
|
|
900
908
|
if (shouldStopTracks) {
|
|
901
|
-
|
|
909
|
+
try {
|
|
910
|
+
(_a = producer.track) === null || _a === void 0 ? void 0 : _a.stop();
|
|
911
|
+
}
|
|
912
|
+
catch (err) {
|
|
913
|
+
}
|
|
902
914
|
}
|
|
903
915
|
}
|
|
904
916
|
catch (err) {
|
|
905
917
|
}
|
|
906
918
|
if (producer.closed === false) {
|
|
907
|
-
|
|
919
|
+
try {
|
|
920
|
+
producer.close();
|
|
921
|
+
}
|
|
922
|
+
catch (err) {
|
|
923
|
+
}
|
|
908
924
|
}
|
|
909
925
|
});
|
|
910
926
|
}
|
|
911
927
|
this.dataProducers.forEach(function (producer) {
|
|
912
928
|
if (producer.closed === false) {
|
|
913
929
|
if (shouldStopTracks) {
|
|
914
|
-
|
|
930
|
+
try {
|
|
931
|
+
producer.close();
|
|
932
|
+
}
|
|
933
|
+
catch (err) {
|
|
934
|
+
}
|
|
915
935
|
}
|
|
916
936
|
}
|
|
917
937
|
});
|
|
918
938
|
this.dataConsumer.forEach(function (consumer) {
|
|
919
939
|
if (consumer.closed === false) {
|
|
920
|
-
|
|
940
|
+
try {
|
|
941
|
+
consumer.close();
|
|
942
|
+
}
|
|
943
|
+
catch (err) {
|
|
944
|
+
}
|
|
921
945
|
}
|
|
922
946
|
});
|
|
923
947
|
this.consumers.forEach(function (consumer) {
|