diff --git a/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/DramaBox 播放与下载在服务端解密 MP4.md b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/DramaBox 播放与下载在服务端解密 MP4.md new file mode 100644 index 0000000..292b7a1 --- /dev/null +++ b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/DramaBox 播放与下载在服务端解密 MP4.md @@ -0,0 +1,20 @@ +--- +title: DramaBox 播放与下载在服务端解密 MP4 +type: decision +permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/drama-box-播放与下载在服务端解密-mp4 +stable_id: cfc98f3e-673e-4695-835b-cc7933f819a0 +scope: project +memory_type: decision +project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: dec-dramabox-play-decrypt-20261024 +created_at: '2026-10-23T17:29:17.720946+00:00' +updated_at: '2026-10-23T17:29:17.720946+00:00' +tags: +- dramabox +- playback +--- + +DramaBox 播放仍用原有 PlayerPage 的 file 模式,不换控件。/api/dramabox/play/{vid}/{cid}/file 整段拉 CDN、decrypt_if_needed、返回 video/mp4;内存缓存最近 2 集,Accept-Ranges: none,避免每次 seek 重新下加密文件。下载只在 DramaBox DownloadManager 的 prepare_file 里 decrypt_file_if_needed,RaptDrama/黄豆不走这条路。Python 改动后必须完全退出桌面程序再打开。未提交。 \ No newline at end of file