Closed iBinbro closed 8 months ago
- (void)applicationDidEnterBackground { if (self.server.numberOfHTTPConnections > 0) { KTVHCLogHTTPServer(@"%p, enter background", self); [self beginBackgroundTask]; } else { KTVHCLogHTTPServer(@"%p, enter background and stop server", self); [self stopInternal]; } }
执行了 enter background and stop server 方法,实际上音视频并没有完全下载完全 播放核心代码, 请大佬赐教~(^_^)
NSURL *proxyUrl = [KTVHTTPCache proxyURLWithOriginalURL:self.assetURL]; _asset = [AVURLAsset URLAssetWithURL:proxyUrl options:self.requestHeader]; _playerItem = [AVPlayerItem playerItemWithAsset:_asset]; _player = [AVPlayer playerWithPlayerItem:_playerItem];
我把源码相关的[self stopInternal]; 进行了注释,也算解决了这个问题,但是有点旁门左道的味道~不知道大佬能不能给点建议,谢谢~
3.0 已修复
执行了 enter background and stop server 方法,实际上音视频并没有完全下载完全 播放核心代码, 请大佬赐教~(^_^)