[mirotalksfu] - #194 Add missing
هذا الالتزام موجود في:
@@ -92,9 +92,6 @@ class VirtualBackground {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async processStreamWithSegmentation(videoTrack, maskHandler) {
|
async processStreamWithSegmentation(videoTrack, maskHandler) {
|
||||||
// Stop any existing processor before starting a new one
|
|
||||||
await this.stopCurrentProcessor();
|
|
||||||
|
|
||||||
// Initialize segmentation if not already done
|
// Initialize segmentation if not already done
|
||||||
await this.initializeSegmentation();
|
await this.initializeSegmentation();
|
||||||
|
|
||||||
@@ -176,8 +173,9 @@ class VirtualBackground {
|
|||||||
cleanPendingFrames() {
|
cleanPendingFrames() {
|
||||||
// Close all pending frames to release resources
|
// Close all pending frames to release resources
|
||||||
while (this.pendingFrames.length) {
|
while (this.pendingFrames.length) {
|
||||||
const { videoFrame } = this.pendingFrames.pop();
|
const { videoFrame, imageBitmap } = this.pendingFrames.pop();
|
||||||
videoFrame?.close();
|
videoFrame?.close();
|
||||||
|
imageBitmap?.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم