feat: Add PIP (Picture-in-Picture) support (#2391)

- Closes: #1657
This commit is contained in:
Dermot Duffy
2026-03-05 20:19:20 -08:00
committed by GitHub
parent ecc8ecfd7e
commit c398562d40
32 changed files with 735 additions and 14 deletions
@@ -0,0 +1,18 @@
import { expect, it } from 'vitest';
import { PIPAction } from '../../../../src/card-controller/actions/actions/pip';
import { createCardAPI } from '../../../test-utils';
it('should toggle PIP', async () => {
const api = createCardAPI();
const action = new PIPAction(
{},
{
action: 'fire-dom-event',
advanced_camera_card_action: 'pip',
},
);
await action.execute(api);
expect(api.getPIPManager().togglePIP).toBeCalled();
});