Repository navigation
fix: 避免 MP4 和 HLS 分片被误判为播放列表 - #5
Open
AirSnailArtist wants to merge 1 commit into
Open
AirSnailArtist wants to merge 1 commit into
AirSnailArtist wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当 MP4 的签名 URL 参数包含
hls/m3u8,或者 HLS 会话代理二进制分片时,原生代理会把媒体误判为播放列表,导致读取失败或 502。改为根据资产类型、响应 MIME、最终 URL 的路径和已有内容嗅探判断,避免会话密钥把所有分片都标成列表。验证:增加带签名参数的大 MP4 和含 HLS 密钥会话的二进制分片两项回归;本地
go test ./core -run 'TestNative(HLS|Playback|Stream|Encrypted|Read)' -count=1通过。