@lalalic/markcut 3.2.28 → 3.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/mcp/remotion-app.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import {SharedPlayer} from '../player/SharedPlayer';
|
|
|
6
6
|
import {SceneThumbnails} from '../player/components/SceneThumbnails';
|
|
7
7
|
import {useWebAudioPreview} from './web-audio-preview';
|
|
8
8
|
import {useBrowserSpeechPreview} from './browser-speech-preview';
|
|
9
|
-
const PLAYER_VERSION='
|
|
9
|
+
const PLAYER_VERSION='v35';
|
|
10
10
|
const contextTime=(scene:{start:number;end:number}|undefined,time:number)=>
|
|
11
11
|
Math.round(Math.max(scene?.start??0,Math.min(scene?.end??time,time))*10)/10;
|
|
12
12
|
function App(){
|
|
@@ -98,10 +98,12 @@ function App(){
|
|
|
98
98
|
<input type="checkbox" checked={useBrowserTts} disabled={!data?.subtitle?.src} onChange={e=>setBrowserTts(e.target.checked)}/>
|
|
99
99
|
Browser TTS
|
|
100
100
|
</label>,document.getElementById("header-tts")!)}
|
|
101
|
-
<div id="remotion-canvas" style={{width:'100%',aspectRatio:`${data.width||1080}/${data.height||1920}`,maxHeight:'65vh',margin:'auto'}}>
|
|
101
|
+
<div id="remotion-canvas" style={{position:'relative',width:'100%',aspectRatio:`${data.width||1080}/${data.height||1920}`,maxHeight:'65vh',margin:'auto'}}>
|
|
102
102
|
<SharedPlayer key={revision.revisionId} root={playbackRoot} playerRef={ref} numberOfSharedAudioTags={0} style={{width:'100%',height:'100%'}} />
|
|
103
|
+
{useBrowserTts&&caption&&<div id="browser-tts-caption" aria-live="off" style={{position:'absolute',bottom:50,left:12,right:12,zIndex:5,pointerEvents:'none',textAlign:'center'}}>
|
|
104
|
+
<span style={{display:'inline-block',maxWidth:'90%',padding:'5px 10px',borderRadius:5,background:'rgba(0,0,0,.72)',color:'#fff',fontSize:'clamp(12px,1.6vw,18px)',lineHeight:1.4,textShadow:'0 1px 2px #000',overflowWrap:'anywhere'}}>{caption}</span>
|
|
105
|
+
</div>}
|
|
103
106
|
</div>
|
|
104
|
-
{useBrowserTts&&caption&&<div role="status" style={{textAlign:"center",padding:"6px 12px",fontSize:13}}>{caption}</div>}
|
|
105
107
|
<SceneThumbnails sceneData={scenes} commentedScenes={commentedScenes} currentTime={currentTime} onSeek={t=>{ref.current?.seekTo(Math.round(t*fps));setCurrentTime(t);}} />
|
|
106
108
|
{seekBar&&createPortal(<>
|
|
107
109
|
{spotMarkers.map(note=>{
|
|
@@ -11,7 +11,7 @@ describe('Markcut Remotion MCP App',()=>{
|
|
|
11
11
|
const html=buildPreviewHtml();
|
|
12
12
|
expect(html).toContain('id="remotion-root"');
|
|
13
13
|
expect(html).toContain('id="player-version"');
|
|
14
|
-
expect(html).toContain('>
|
|
14
|
+
expect(html).toContain('>v35</span>');
|
|
15
15
|
expect(html).toContain('id="video-md-version"');
|
|
16
16
|
expect(html).toContain('<textarea id="feedback" rows="3"');
|
|
17
17
|
expect(html).toContain('id="comment-tools"');
|