Open bzydys opened 2 years ago
修改一下播放结束的方法 self.player.playerDidToEnd = ^(id _Nonnull asset) { @zf_strongify(self) [self.player stopCurrentPlayingCell]; };
修改为 self.player.playerDidToEnd = ^(id _Nonnull asset) { @zf_strongify(self) [self.player enterFullScreen:NO animated:YES]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.player stopCurrentPlayingCell]; }); };
修改一下播放结束的方法 self.player.playerDidToEnd = ^(id _Nonnull asset) { @zf_strongify(self) [self.player stopCurrentPlayingCell]; };
修改为 self.player.playerDidToEnd = ^(id _Nonnull asset) { @zf_strongify(self) [self.player enterFullScreen:NO animated:YES]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.player stopCurrentPlayingCell]; }); };