Skip to content

Commit 8440d02

Browse files
Update SVGAVideoEntity.kt
1 parent 8f5df11 commit 8440d02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class SVGAVideoEntity {
212212

213213
private fun setupAudios(entity: MovieEntity, completionBlock: () -> Unit) {
214214
if (entity.audios == null || entity.audios.isEmpty()) {
215+
// 为啥会有音轨?
215216
run(completionBlock)
216217
}
217218
setupSoundPool(entity, completionBlock)
@@ -287,6 +288,7 @@ class SVGAVideoEntity {
287288
.setUsage(AudioAttributes.USAGE_MEDIA)
288289
.build()
289290
SoundPool.Builder().setAudioAttributes(attributes)
291+
// 报错的点,看看音频数量
290292
.setMaxStreams(12.coerceAtMost(entity.audios.count()))
291293
.build()
292294
} else {

0 commit comments

Comments
 (0)