switchUserVideo

Toggles or switches the video stream based on user preferences and permission checks.

Implements the same 3-attempt fallback pattern as Flutter:

  1. First attempt with device ID (sourceId) + constraints

  2. Second attempt with facingMode + constraints (no specific device)

  3. Third attempt with minimal facingMode only

Parameters

options

Options containing video preference and parameters