Skip to content

Commit

Permalink
#52, fix http_seek cause 401 authentication bug
Browse files Browse the repository at this point in the history
  • Loading branch information
debugly committed Oct 21, 2024
1 parent 82cf9ee commit 14e6f51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ tag k0.11.8
- add builtin smb2 protocol
- move “application.h” to “libavformat” directory
- support Network or Local Blu-ray Disc/BDMV
- fix http_seek cause 401 authentication bug,#52

tag k0.11.7
--------------------------------
Expand Down
2 changes: 1 addition & 1 deletion FFToolChain
4 changes: 3 additions & 1 deletion examples/macos/IJKMediaDemo/MRRootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ - (void)perpareIJKPlayer:(NSURL *)url hwaccel:(BOOL)hwaccel isLive:(BOOL)isLive
[options setPlayerOptionIntValue:1500 forKey:@"accurate-seek-timeout"];
options.metalRenderer = ![MRCocoaBindingUserDefault use_opengl];
options.showHudView = self.shouldShowHudView;
//作用有限,重定向后就失效了,变成了自动判断
[options setFormatOptionValue:@"1" forKey:@"auth_type"];

//默认不使用dns缓存,指定超时时间才会使用;
if ([MRCocoaBindingUserDefault use_dns_cache]) {
Expand All @@ -663,7 +665,7 @@ - (void)perpareIJKPlayer:(NSURL *)url hwaccel:(BOOL)hwaccel isLive:(BOOL)isLive
[options setFormatOptionValue:@"Accept-Encoding: gzip, deflate" forKey:@"headers"];
}
//protocol_whitelist need add httpproxy
//[options setFormatOptionValue:@"http://10.7.36.42:8888" forKey:@"http_proxy"];
//[options setFormatOptionValue:@"http://10.7.36.40:8888" forKey:@"http_proxy"];

NSMutableArray *dus = [NSMutableArray array];
if ([url.scheme isEqualToString:@"file"] && [url.absoluteString.pathExtension isEqualToString:@"m3u8"]) {
Expand Down

0 comments on commit 14e6f51

Please sign in to comment.