Skip to content

svgaplayerweb #57

@weining123456

Description

@weining123456

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 这是为什么呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions