Skip to content

Commit

Permalink
add restart listener
Browse files Browse the repository at this point in the history
  • Loading branch information
zengjiale2 committed Nov 8, 2022
1 parent 7acf53a commit c35fc7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yyevac/src/main/java/com/yy/yyeva/view/EvaAnimView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ open class EvaAnimView @JvmOverloads constructor(context: Context, attrs: Attrib
evaAnimListener?.onVideoStart()
}

override fun onVideoRestart() {
evaAnimListener?.onVideoRestart()
}

override fun onVideoRender(frameIndex: Int, config: EvaAnimConfig?) {
evaAnimListener?.onVideoRender(frameIndex, config)
}
Expand Down
4 changes: 4 additions & 0 deletions yyevac/src/main/java/com/yy/yyeva/view/EvaAnimViewV3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ open class EvaAnimViewV3 @JvmOverloads constructor(context: Context, attrs: Attr
evaAnimListener?.onVideoStart()
}

override fun onVideoRestart() {
evaAnimListener?.onVideoRestart()
}

override fun onVideoRender(frameIndex: Int, config: EvaAnimConfig?) {
evaAnimListener?.onVideoRender(frameIndex, config)
}
Expand Down

0 comments on commit c35fc7c

Please sign in to comment.