Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 0133a0b

Browse files
committed
fix: Correct play audio.
1 parent b2d7df8 commit 0133a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/opensource/svgaplayer/drawer/SVGACanvasDrawer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
2929

3030
override fun drawFrame(canvas: Canvas, frameIndex: Int, scaleType: ImageView.ScaleType) {
3131
super.drawFrame(canvas,frameIndex, scaleType)
32+
playAudio(frameIndex)
3233
this.pathCache.onSizeChanged(canvas)
3334
val sprites = requestFrameSprites(frameIndex)
3435
// Filter null sprites
@@ -89,7 +90,6 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
8990
}
9091
}
9192
}
92-
playAudio(frameIndex)
9393
}
9494

9595
private fun isMatteBegin(spriteIndex: Int, sprites: List<SVGADrawerSprite>): Boolean {

0 commit comments

Comments
 (0)