fix: 修复视频播放问题

This commit is contained in:
imeepos 2025-07-11 18:43:05 +08:00
parent 5b32c5749a
commit 6c24d5b201
3 changed files with 14 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class Settings(BaseSettings):
project_root: Path = Path(__file__).parent.parent
temp_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "temp")
cache_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "cache")
projects_dir: Path = Field(default_factory=lambda: Path.home() / "MixVideo Projects")
projects_dir: Path = Field(default_factory=lambda: Path.home() / "MixVideoProjects")
# Video Processing
max_video_resolution: str = "1920x1080"

View File

@ -28,7 +28,10 @@
"csp": "default-src 'self'; img-src 'self' asset: data: http://asset.localhost; media-src 'self' asset: http://asset.localhost; video-src 'self' asset: http://asset.localhost; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' ipc: http://ipc.localhost",
"assetProtocol": {
"enable": true,
"scope": []
"scope": [
"**/**",
"$HOME/.mixvideo/**/**"
]
},
"freezePrototype": true
}

View File

@ -9,7 +9,15 @@ const HomePage: React.FC = () => {
return (
<div className="p-6 space-y-8">
<VideoPlayer2 src={`"D:\\1751275800969.mp4"`}/>
<div className='w-24'>
<VideoPlayer2 src={`D:\\1751275800969.mp4`} />
</div>
<div className="w-24">
<VideoPlayer2 src={`C:\\Users\\imeep\\Desktop\\mertial\\AI视频\\0630-交付素材4\\背景3\\1751275800969.mp4`} />
</div>
<div className="w-24">
<VideoPlayer2 src={`C:\\Users\\imeep\\.mixvideo\\temp\\video_segments\\1d9c3776-e4bf-4e4d-af81-aa580463b6c9.mp4`} />
</div>
{/* Welcome Section */}
<WelcomeSection />