SJVideoPlayer控制层扩展
- iOS 11.0
- Swift 5.0
pod 'AriaSwiftyChain', :git => 'https://github.com/moxcomic/AriaSwiftyChain.git'
pod 'AriaVideoControlLayer', :git => 'https://github.com/moxcomic/AriaVideoControlLayer.git'
import AriaVideoControlLayer
player.switcher.addControlLayer(forIdentifier: LONG_MAX - 1) { (id) -> SJControlLayer in
return AriaVideoControlLayer()
}
#import <AriaVideoControlLayer-Swift.h>
[_player.switcher addControlLayerForIdentifier:LONG_MAX - 1 lazyLoading:^id<SJControlLayer> _Nonnull(SJControlLayerIdentifier identifier) {
return [AriaVideoControlLayer new];
}];