Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

#import "SVGAVideoEntity.h" 文件 protoObject.params 为空 #152

Open
lijiajunios opened this issue Jan 15, 2021 · 1 comment
Open

#import "SVGAVideoEntity.h" 文件 protoObject.params 为空 #152

lijiajunios opened this issue Jan 15, 2021 · 1 comment

Comments

@lijiajunios
Copy link

数据解析为空

  • (void)resetMovieWithProtoObject:(SVGAProtoMovieEntity *)protoObject {
    if (protoObject.hasParams) {
    self.videoSize = CGSizeMake((CGFloat)protoObject.params.viewBoxWidth, (CGFloat)protoObject.params.viewBoxHeight);
    self.FPS = (int)protoObject.params.fps;
    self.frames = (int)protoObject.params.frames;
    }
    }
@Dilrvvr
Copy link

Dilrvvr commented Sep 13, 2021

同遇到这种情况。protoObject.hasParams是YES,但是protoObject.params 为空。
同一个svga文件,在我们的项目中params为空,无法播放,但是创建一个新的Xcode项目播放又是正常的。
暂时不清楚什么问题造成的。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants