mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-10 16:14:54 +03:00
docs(web-test): sync API docs with actual implementation
- recording.md: add speech param to showCaption parameter table - web-test-guide.md: add showImage, hideImage, addNarration, getCaptions to utilities table; add speech to showCaption/showTitleSlide descriptions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -88,6 +88,7 @@ Display a text overlay on the page (visible in recording). Calling again updates
|
||||
| `opts.fontSize` | number | 24 | Font size in px |
|
||||
| `opts.background` | string | `'rgba(0,0,0,0.7)'` | Background color |
|
||||
| `opts.color` | string | `'#fff'` | Text color |
|
||||
| `opts.speech` | string \| false | - | TTS narration text. Omit = use displayed text, string = custom narration, false = skip narration |
|
||||
|
||||
The overlay uses `pointer-events: none` — does not interfere with clicking.
|
||||
|
||||
|
||||
@@ -262,10 +262,14 @@ await closeForm({ save: false });
|
||||
| `getPage()` | Сырой Playwright Page для горячих клавиш и нестандартных операций |
|
||||
| `startRecording(path, opts?)` | Начать запись видео (CDP screencast → ffmpeg → MP4) |
|
||||
| `stopRecording()` | Остановить запись, вернуть `{ file, duration, size }` |
|
||||
| `showCaption(text, opts?)` | Текстовая подпись поверх страницы (для видеозаписей) |
|
||||
| `showCaption(text, opts?)` | Текстовая подпись поверх страницы (`speech` — текст озвучки) |
|
||||
| `hideCaption()` | Убрать подпись |
|
||||
| `showTitleSlide(text, opts?)` | Полноэкранный титульный слайд (`\n` → перенос, `subtitle`, `background`) |
|
||||
| `showTitleSlide(text, opts?)` | Полноэкранный титульный слайд (`subtitle`, `background`, `speech`) |
|
||||
| `hideTitleSlide()` | Убрать титульный слайд |
|
||||
| `showImage(path, opts?)` | Полноэкранное изображение (`style`: blur/dark/light/full, `speech`) |
|
||||
| `hideImage()` | Убрать изображение |
|
||||
| `addNarration(videoPath, opts?)` | Озвучка видео по субтитрам (Edge TTS / ElevenLabs / OpenAI) |
|
||||
| `getCaptions()` | Субтитры из текущей/последней записи |
|
||||
| `isRecording()` | Идёт ли запись (boolean) |
|
||||
| `setHighlight(on)` | Включить/выключить авто-выделение элементов при действиях |
|
||||
| `isHighlightMode()` | Активен ли режим авто-выделения (boolean) |
|
||||
|
||||
Reference in New Issue
Block a user