svga-player egret版本,需要依赖libs目录下的protobuf,zlib。
const parser = new Parser();
const player = new Player();
// player.loops = 1;
player.width = 750;
player.height = 750;
player.clearsAfterStop = false;
stage.addChild(player);
player.setVideoItem(videoItem);
player.startAnimation();
详细文档:https://github.com/svga/SVGAPlayer-Web/blob/master/README.zh.md