Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgaplayerweb #57

Open
weining123456 opened this issue Jan 7, 2025 · 0 comments
Open

svgaplayerweb #57

weining123456 opened this issue Jan 7, 2025 · 0 comments

Comments

@weining123456
Copy link

mounted() {
this.player = new SVGA. Player(#${this.svgaId});
this.parser = new SVGA. Parser(#${this.svgaId});
this.loadSvgaAnimation();
},
methods: {
loadSvgaAnimation() {
this.parser.load(this.displayUrl, (videoItem) => {
this.player.setVideoItem(videoItem);
this.player.startAnimation();
console.log("开始播放");
});
},
} dusplayUrl 是一个cos的链接 我换成本地文件能正常播放 但是使用cos的链接就不能正常播放
ProgressEvent {isTrusted: true} 报了一个这样的错误 然后我看network 里面这个链接的加载状态是0 这是为什么呢

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

No branches or pull requests

1 participant