mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-30 08:26:55 +03:00
feat(web-test): add showImage/hideImage for displaying images during recording
Show image files (PNG, JPG, etc.) as full-screen overlays during video recording — useful for presentation slides in video instructions. - Read file → base64 → inject as <img> overlay (same pattern as showTitleSlide) - Style presets: blur (default), dark, light, full - blur: blurred+dimmed copy as background with shadow - full: object-fit cover, fills entire screen - TTS speech support with smart wait (same as showCaption) - Custom background overrides preset - Fixed no-record stubs: showImage/showTitleSlide not stubbed (visual-only) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
05fc7eba27
commit
18ad662378
@@ -124,7 +124,7 @@ async function executeScript(code, { noRecord } = {}) {
|
||||
exports.startRecording = noop;
|
||||
exports.stopRecording = async () => ({ file: null, duration: 0, size: 0 });
|
||||
exports.addNarration = async () => ({ file: null, duration: 0, size: 0, captions: 0 });
|
||||
for (const fn of ['showCaption', 'hideCaption', 'showTitleSlide', 'hideTitleSlide']) {
|
||||
for (const fn of ['showCaption', 'hideCaption']) {
|
||||
exports[fn] = noop;
|
||||
}
|
||||
exports.isRecording = () => false;
|
||||
|
||||
Reference in New Issue
Block a user