Skip to content

[Bug]: Video element not cleaned up in stopSharing causes GPU leak #310

@Muneerali199

Description

@Muneerali199

The stopSharing function in useCaptureProvider does not clear the videoRef.srcObject or pause the video element, causing GPU pipeline memory leaks.

File: src/hooks/useCaptureProvider.ts

Fix: Add video.pause() and video.srcObject = null in stopSharing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions