Function TrackBoundary

  • Delegates track stop of descendant Track Players. This prevents track stops on Track Players unmounts due to re-layout.

    Parameters

    • __namedParameters: {
          children?: ReactNode;
      }
      • Optional children?: ReactNode

    Returns Element

    Example

    <TrackBoundary>
    <RemoteUser user={user1} />
    <RemoteUser user={user2} />
    </TrackBoundary>

    Example

    <TrackBoundary>
    <RemoteVideoTrack track={track1} />
    <RemoteVideoTrack track={track2} />
    </TrackBoundary>