import { LitElement } from 'lit'; import type { Call } from '../types/index.js'; import './UI/icons/sw-ui-icon.js'; /** * Local camera preview. Adapts its aspect-ratio to match the actual * video track (landscape or portrait). * * Input precedence : `.stream`/`.videoMuted` > `.call` > context. * * @prop {MediaStream|null} stream - explicit stream (overrides .call and context) * @prop {boolean} videoMuted - explicit muted flag (overrides context) * @prop {Call} call - explicit Call object (overrides context) * @prop {boolean} mirror - mirror the video horizontally * * @csspart video - The `