diff --git a/docs/第三方服务/WebIDE.mdx b/docs/第三方服务/WebIDE.mdx index 568a870..174ace8 100644 --- a/docs/第三方服务/WebIDE.mdx +++ b/docs/第三方服务/WebIDE.mdx @@ -68,8 +68,8 @@ Gitlink 通过实现 Blame 插件,完成了编辑器 Blame 查看的能力: { setIsLoaded(true); }; + + const handleVideoLoad = () => { + setIsLoaded(true); + }; + + // 渲染本地视频播放器 + const renderLocalVideo = () => { + return ( + + ); + }; + + // 渲染在线视频播放器 + const renderOnlineVideo = () => { + return ( + + ); + }; return (
@@ -44,19 +81,15 @@ function VideoDemo({
{!isLoaded &&
加载中...
} - + {platform.toLowerCase() === 'local' + ? renderLocalVideo() + : renderOnlineVideo() + }
- {options.showTips && options.tips && ( + {options.showTips && (
-

提示: {options.tips}

+

提示: {options.tips || "可以使用播放器控制栏调整播放速度和画质"}

)}
diff --git a/static/mp4/example.mp4 b/static/mp4/example.mp4 new file mode 100644 index 0000000..6404c69 Binary files /dev/null and b/static/mp4/example.mp4 differ