fix: 修复视频播放问题
This commit is contained in:
parent
5b32c5749a
commit
6c24d5b201
|
|
@ -28,7 +28,7 @@ class Settings(BaseSettings):
|
||||||
project_root: Path = Path(__file__).parent.parent
|
project_root: Path = Path(__file__).parent.parent
|
||||||
temp_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "temp")
|
temp_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "temp")
|
||||||
cache_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "cache")
|
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
|
# Video Processing
|
||||||
max_video_resolution: str = "1920x1080"
|
max_video_resolution: str = "1920x1080"
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"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": {
|
"assetProtocol": {
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"scope": []
|
"scope": [
|
||||||
|
"**/**",
|
||||||
|
"$HOME/.mixvideo/**/**"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"freezePrototype": true
|
"freezePrototype": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,15 @@ const HomePage: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<div className="p-6 space-y-8">
|
<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 */}
|
{/* Welcome Section */}
|
||||||
<WelcomeSection />
|
<WelcomeSection />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue