Skip to content

Commit

Permalink
增加旋转播放画面的demo (2017-04-13)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Apr 13, 2017
1 parent 0a3e220 commit b918ba9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ public void onClick(View v) {
public void onClick(View v) {
if((mTextureView.getRotation() - mRotate) == 270) {
mTextureView.setRotation(mRotate);
mTextureView.requestLayout();
} else {
mTextureView.setRotation(mTextureView.getRotation() + 90);
mTextureView.requestLayout();
}

}
Expand Down

0 comments on commit b918ba9

Please sign in to comment.