Open jigelang opened 5 years ago
this._player.setVideoItem(videoItem); this._player.loops = 1; this._player.startAnimation() this._player.onFrame((frame)=>{ if(frame == 21){ this._player.loops = 0; this._player.startAnimationWithRange({ location: 22, length: 23 }) } })
这么写在回调时会透明一帧。
it will cause the animation has a transparent frame
this._player.setVideoItem(videoItem); this._player.loops = 1; this._player.startAnimation() this._player.onFrame((frame)=>{ if(frame == 21){ this._player.loops = 0; this._player.startAnimationWithRange({ location: 22, length: 23 }) } })
这么写在回调时会透明一帧。
it will cause the animation has a transparent frame