掘金 | 知乎 | CSDN | 简书 |
---|---|---|---|
点我 | 点我 | 点我 | 点我 |
- 领域主要 Android、Flutter、React Native
Base on Vap to play alpha video animation
License: MIT License
我想播放assets目录下的.mp4文件,却报错了。而且只要报错就会异常,报reply submit。这是第一是因为重复回掉了.success方法。第二个就是无法播放assets目录下文件。会在AnimConfigManager类的第163行报错。
Hi, the old apk is working but it's not working in new flutter. Need your help.
Hello,
Any chance to make it work on Flutter Web? For Android it works great, thanks for your fantastic work.
Unhandled Exception: MissingPluginException(No implementation found for method playAsset on channel flutter_vap_controller)
Thank you for your great work!
Can you make a new function to start animation from specific frame or duration, also a feature to repeat video feature. It will be highly appreciated
This is a good plugin as it works on ios and android.
The issue I'm facing is that I'm unfamiliar with the Vap format and most of the documentation is in Chinese including the Tencent repo. I was able to run the vap tool from tencent and I see that it's created from may png files. Are there any resources to teach people how to create Vap files so that the tool can get more exposure?
black background in vap player no alpha
这可太棒了,什么时候可以支持下flutter2.0呢
环境:
操作:
拷贝了 vap 项目中的 mp4 资源到 Flutter 项目中的 assets 目录下。调用 playAsset 方法。
log:
<2> UIView+VAP.m(269):-[UIView(VAP) p_playHWDMP4:fps:blendMode:repeatCount:delegate:] [kQGVAPModuleCommon] - try to display mp4:/private/var/containers/Bundle/Application/854C300F-72E0-4748-A923-07C348A4AB3B/Runner.app/Frameworks/App.framework/flutter_assets/assets/video/vap.mp4 blendMode:0 fps:0 repeatCount:0
<2> QGMP4FrameHWDecoder.m(337):-[QGMP4FrameHWDecoder initPPSnSPS] [kQGVAPModuleCommon] - initPPSnSPS
<5> QGVAPTextureLoader.m(65):+[QGVAPTextureLoader drawingImageForText:color:size:bold:] [kQGVAPModuleCommon] - draw text resource fail cuz text is nil !!
<5> QGVAPTextureLoader.m(65):+[QGVAPTextureLoader drawingImageForText:color:size:bold:] [kQGVAPModuleCommon] - draw text resource fail cuz text is nil !!
疑问:
我看到 QGVAPTextureLoader
文件中的 contentTagValue
的设置可以为 nil:
- (NSString *)vap_contentForTag:(NSString *)tag resource:(QGVAPSourceInfo *)info {
if ([self.hwd_Delegate respondsToSelector:@selector(contentForVapTag:resource:)]) {
return [self.hwd_Delegate contentForVapTag:tag resource:info];
}
return nil;
}
为什么QGVAPTextureLoader
的 + (UIImage *)drawingImageForText:(NSString *)textStr color:(UIColor *)color size:(CGSize)size bold:(BOOL)bold
方法不允许 textStr
为 nil 呢?
+ (UIImage *)drawingImageForText:(NSString *)textStr color:(UIColor *)color size:(CGSize)size bold:(BOOL)bold {
if (textStr.length == 0) {
VAP_Error(kQGVAPModuleCommon, @"draw text resource fail cuz text is nil !!");
return nil;
}
// ....
}
如何解决这个问题呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.