Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
svge-egret
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
svge-egret
Commits
3768d797
Commit
3768d797
authored
Sep 26, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
a0c09c60
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
README.md
README.md
+10
-12
No files found.
README.md
View file @
3768d797
...
...
@@ -2,14 +2,6 @@
预览svga动画网址 http://svga.io/svga-preview.html
### 支持 SVGA-Format 1.x 格式
如果你需要播放 1.x 格式的 SVGA 文件,需要添加 JSZip 到你的 HTML 页面中。
```
html
<script
src=
"//s1.yy.com/ued_web_static/lib/jszip/3.1.4/??jszip.min.js,jszip-utils.min.js"
charset=
"utf-8"
></script>
```
修改自原github项目 https://github.com/yyued/SVGAPlayer-Web
### 白鹭引擎使用 在白鹭的js后加下面脚本
...
...
@@ -42,10 +34,8 @@ parser.load("../egret/loading五神兽最终版.svga", (videoItem) => {
```
## 使用指南
canvas形式使用
## 使用指南(原生形式使用)
原生canvas形式使用,
### 手动加载
添加
```<script src="https://cdn.jsdelivr.net/npm/svgaplayerweb@2.3.0/build/svga.min.js"></script>```
到 your.html 页面
...
...
@@ -164,3 +154,11 @@ SVGA.Parser 用于加载远端或 Base64 动画,并转换成 VideoItem。
```
<script src="//cdn.bootcss.com/blob-polyfill/1.0.20150320/Blob.min.js"></script>
```
### 支持 SVGA-Format 1.x 格式
如果你需要播放 1.x 格式的 SVGA 文件,需要添加 JSZip 到你的 HTML 页面中。
```
html
<script
src=
"//s1.yy.com/ued_web_static/lib/jszip/3.1.4/??jszip.min.js,jszip-utils.min.js"
charset=
"utf-8"
></script>
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment