问题描述
publicvoidseekTo(intparamInt){if(paramInt<=0)return;Log.d("VSTVideoView","msec="+paramInt);if(this.isResultSeek){if(isInPlaybackState()){this.mMediaPlayer.seekTo(paramInt);this.mSeekWhenPrepared=0;return;}this.mSeekWhenPrepared=paramInt;Log.d("VSTVideoView","mSeekWhenPrepared="+this.mSeekWhenPrepared);return;}for(inti=0;;++i){if(i<this.mDurations.length);paramInt-=this.mDurations[i];if(paramInt>=0)continue;intj=paramInt+this.mDurations[i];this.isResultSeek=true;if(this.index==i){this.mMediaPlayer.seekTo(j);this.mSeekWhenPrepared=0;return;}this.index=i;this.mUri=this.mUris[i];this.mSeekWhenPrepared=j;Log.d("VSTVideoView","mSeekWhenPrepared="+this.mSeekWhenPrepared);this.handler.post(newRunnable(){publicvoidrun(){VideoView.this.openVideo();}});return;}}
解决方案
解决方案二:
一些if判断,状态判断,赋值,这些语句一行一行的谁都能看得懂吧?LZ要是想问业务逻辑,那就。。。
解决方案三:
这个。没几个人会乐意去读吧
解决方案四:
看上去反编译得和正常代码差不多了啊,还有什么需要还原的