要运行示例项目,请克隆仓库,并首先从示例目录中运行 pod install
。
SPAsyncVideoView 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中即可
pod "SPAsyncVideoView"
NSURL *url = [[NSBundle mainBundle] URLForResource:@"example" withExtension:@"mp4"];
SPAsyncVideoAsset *asset = [[SPAsyncVideoAsset alloc] initWithURL:url];
SPAsyncVideoView *view = [SPAsyncVideoView new];
view.asset = asset;
Pimenov Sergey, [email protected]
SPAsyncVideoView 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。