You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,20 @@
1
1
# SVGAPlayer-Android CHANGELOG (2021-03-02)
2
2
3
+
## [2.6.0](2021-08-18)
4
+
5
+
## Features
6
+
7
+
* feat(SVGASoundManager): Added SVGASoundManager to control SVGA audio, you need to manually call the init method to initialize, otherwise follow the default audio loading logic.
8
+
* feat(SVGAParser): SVGAParser#decodeFromAssets and SVGAParser#decodeFromURL add a parameter, which can be null. It is used to send the audio file back to the developer. The developer can control the audio playback by himself. If this parameter is set, the audio part will not be processed internally.
9
+
* feat(SVGAParser): Add aliases to the log section to facilitate developers to troubleshoot problems
10
+
* feat(SVGACache): Open cache cleaning method: SVGACache#clearCache().
11
+
12
+
### Bug Fixes
13
+
14
+
* refactor(ILogger): Remove redundant api.
15
+
* fix(SoundPool): Added SVGASoundManager to solve the problem that the internal SoundPool does not load audio occasionally.
16
+
* fix(SVGAParser): Zip Path Traversal Vulnerability.
Copy file name to clipboardExpand all lines: readme.md
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -151,18 +151,24 @@ You can also create `SVGAParser` instance by yourself.
151
151
152
152
```kotlin
153
153
parser = new SVGAParser(this);
154
-
parser.decodeFromAssets("posche.svga", new SVGAParser.ParseCompletion() {
154
+
// The third parameter is a default parameter, which is null by default. If this method is set, the audio parsing and playback will not be processed internally. The audio File instance will be sent back to the developer through PlayCallback, and the developer will control the audio playback and playback. stop
#### Create a `SVGAParser` instance, parse from remote server like this.
160
163
161
164
```kotlin
162
165
parser = new SVGAParser(this);
166
+
// The third parameter is a default parameter, which is null by default. If this method is set, the audio parsing and playback will not be processed internally. The audio File instance will be sent back to the developer through PlayCallback, and the developer will control the audio playback and playback. stop
163
167
parser.decodeFromURL(new URL("https://github.com/yyued/SVGA-Samples/blob/master/posche.svga?raw=true"), new SVGAParser.ParseCompletion() {
164
-
165
-
});
168
+
// ...
169
+
}, object:SVGAParser.PlayCallback {
170
+
// The default is null, can not be set
171
+
})
166
172
```
167
173
168
174
#### Create a `SVGADrawable` instance then set to `SVGAImageView`, play it as you want.
@@ -203,6 +209,11 @@ Updated the internal log output, which can be managed and controlled through SVG
203
209
Set whether the log is enabled through the `setLogEnabled` method
204
210
Inject a custom ILogger implementation class through the `injectSVGALoggerImp` method
205
211
212
+
### SVGASoundManager
213
+
Added SVGASoundManager to control SVGA audio, you need to manually call the init method to initialize, otherwise follow the default audio loading logic.
214
+
In addition, through SVGASoundManager#setVolume, you can control the volume of SVGA playback. The range is [0f, 1f]. By default, the volume of all SVGA playbacks is controlled.
215
+
And this method can set a second default parameter: SVGAVideoEntity, which means that only the current SVGA volume is controlled, and the volume of other SVGAs remains unchanged.
0 commit comments