We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f5df11 commit 8440d02Copy full SHA for 8440d02
library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt
@@ -212,6 +212,7 @@ class SVGAVideoEntity {
212
213
private fun setupAudios(entity: MovieEntity, completionBlock: () -> Unit) {
214
if (entity.audios == null || entity.audios.isEmpty()) {
215
+ // 为啥会有音轨?
216
run(completionBlock)
217
}
218
setupSoundPool(entity, completionBlock)
@@ -287,6 +288,7 @@ class SVGAVideoEntity {
287
288
.setUsage(AudioAttributes.USAGE_MEDIA)
289
.build()
290
SoundPool.Builder().setAudioAttributes(attributes)
291
+ // 报错的点,看看音频数量
292
.setMaxStreams(12.coerceAtMost(entity.audios.count()))
293
294
} else {
0 commit comments