ChangbaDevs / KTVHTTPCache

A powerful media cache framework.
MIT License
2.35k stars 435 forks source link

使用Airplay投屏失败,不使用缓存直接播放投屏成功 #134

Closed OriginalSSin closed 7 months ago

QiuYeHong90 commented 11 months ago

https://github.com/QiuYeHong90/KTVHTTPCache 我进行了修改, 可以在同局域网 airplay, 建议搭建一个代理服务器,来实现 不同局域网可以airplay来解决

libobjc commented 7 months ago
/**
 *  Convert the URL to the proxy URL.
 *
 *  @param URL : The URL for HTTP content.
 *  @param bindToLocalhost : If you want to connect to other devices on the LAN, set to NO.  i.e. AirPlay and other functions.
 *  @return If the param is a file URL or the proxy service isn't running, return URL. Otherwise reutrn the proxy URL.
 */
+ (NSURL *)proxyURLWithOriginalURL:(NSURL *)URL bindToLocalhost:(BOOL)bindToLocalhost;