回退 HTTPS 与无 cookie 拉流改动:放弃 HTTPS 方案,iPhone 播放改用夸克系统解码;仅保留 *.tar.gz 与 _*.py 的 gitignore 卫生规则

This commit is contained in:
yvan
2026-09-18 11:30:23 +08:00
parent 67bb1d01c8
commit 53c87872fc
7 changed files with 2 additions and 59 deletions
-11
View File
@@ -94,17 +94,6 @@ func (app *UIApp) registerPlaybackRoutes(mux *http.ServeMux) {
mux.HandleFunc("/api/ui/playback/progress", app.handlePlaybackProgress)
}
// recordPlaybackAssetDenial 记录媒体资产请求被拒的情况,便于诊断
// iOS/WebKit 原生媒体管线的拉流失败(区分会话失效与观看者不匹配)。
func (app *UIApp) recordPlaybackAssetDenial(request *http.Request, reason string) {
agent := request.UserAgent()
if len(agent) > 120 {
agent = agent[:120]
}
app.downloader.recordDiagnostic(diagnosticEvent{Level: "warn", Event: "playback.asset.denied",
HTTPStatus: http.StatusGone, Message: reason + " ua=" + agent})
}
func playbackRequestAllowed(writer http.ResponseWriter, request *http.Request, method string) bool {
writer.Header().Set("Cache-Control", "private, no-store, no-transform")
writer.Header().Set("X-Accel-Buffering", "no")