Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 播放rtsp后,即使重新初始化播放器也无法播放http视频 #5578

Closed
climlove opened this issue Jan 29, 2024 · 1 comment
Closed

Comments

@climlove
Copy link

播放rtsp时候正常,我重新初始化个播放器播放http后
ser-Agent: ijkplayer

Accept: /

Range: bytes=0-

Connection: close

Host: 192.168.1.254

Icy-MetaData: 1

HTTP error 405 Method Not Allowed

无法播放了,http视频之间不会出现这个问题
我试着使用[ _ijkplayer setOptionIntValue:1 forKey:@"dns_cache_clear" ofCategory:1],但是并没有生效

@climlove
Copy link
Author

我发现在第二次初始化后调用[ _ijkplayer setOptionIntValue:1 forKey:@"dns_cache_clear" ofCategory:1]是可以解决问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant