|
@@ -109,6 +109,7 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
|
|
|
QGVAPWrapView *wrapView = [[QGVAPWrapView alloc] initWithFrame:self.view.bounds];
|
|
QGVAPWrapView *wrapView = [[QGVAPWrapView alloc] initWithFrame:self.view.bounds];
|
|
|
wrapView.center = self.view.center;
|
|
wrapView.center = self.view.center;
|
|
|
wrapView.contentMode = QGVAPWrapViewContentModeAspectFit;
|
|
wrapView.contentMode = QGVAPWrapViewContentModeAspectFit;
|
|
|
|
|
+ wrapView.autoDestoryAfterFinish = YES;
|
|
|
[self.view addSubview:wrapView];
|
|
[self.view addSubview:wrapView];
|
|
|
NSString *resPath = [NSString stringWithFormat:@"%@/Resource/demo.mp4", [[NSBundle mainBundle] resourcePath]];
|
|
NSString *resPath = [NSString stringWithFormat:@"%@/Resource/demo.mp4", [[NSBundle mainBundle] resourcePath]];
|
|
|
[wrapView vapWrapView_playHWDMP4:resPath repeatCount:-1 delegate:self];
|
|
[wrapView vapWrapView_playHWDMP4:resPath repeatCount:-1 delegate:self];
|
|
@@ -134,7 +135,7 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
|
|
|
- (void)viewDidStopPlayMP4:(NSInteger)lastFrameIndex view:(UIView *)container {
|
|
- (void)viewDidStopPlayMP4:(NSInteger)lastFrameIndex view:(UIView *)container {
|
|
|
//note:在子线程被调用
|
|
//note:在子线程被调用
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- //do something
|
|
|
|
|
|
|
+ [container removeFromSuperview];
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|