Skip to main content
Version: Next

Function: useManagedForwardTrack()

useManagedForwardTrack(enabled): ManagedForwardTrack

Defined in: src/internal/useManagedForwardTrack.ts:29

Owns the async lifecycle of a forwarding custom video track: creates it while enabled, exposes the handle + stream once ready, and stops the tracks on disable/unmount (also when creation resolves after the owner already unmounted).

Parameters​

ParameterType
enabledboolean

Returns​

ManagedForwardTrack