Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hexleo committed Feb 19, 2021
1 parent a36e581 commit 1971542
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ IAnimListener 视频播放过程中的回调方法
private fun init() {
// 获取视频播放 AnimView
animView = (AnimView) findViewById(R.id.player);
// 可选: 设置视频对齐方式(默认FIT_XY,支持自定义)
animView.setScaleType(ScaleType.FIT_XY)
// 开始播放动画文件
animView.startPlay(file)
}
Expand Down

0 comments on commit 1971542

Please sign in to comment.