GithubHelp home page GithubHelp logo

flutter_vap's Introduction

callme大帅’s Github

掘金 知乎 CSDN 简书
点我 点我 点我 点我
  • 领域主要 Android、Flutter、React Native

flutter_vap's People

Contributors

qq326646683 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_vap's Issues

playAsset()方法播放assets目录下文件报错。

我想播放assets目录下的.mp4文件,却报错了。而且只要报错就会异常,报reply submit。这是第一是因为重复回掉了.success方法。第二个就是无法播放assets目录下文件。会在AnimConfigManager类的第163行报错。

Not working anymore.

Hi, the old apk is working but it's not working in new flutter. Need your help.

Jump to frame and Play repeat feature

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

What can we do to get more Information?

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?

flutter2.0

这可太棒了,什么时候可以支持下flutter2.0呢

playAsset 不能正常播放,error:draw text resource fail cuz text is nil

环境:

  • Flutter 3.13.0
  • Dart 3.1.0
  • iPhone 14 Pro,iOS 16.3.1

操作:
拷贝了 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;
    }
    // ....
}

如何解决这个问题呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.