title: How to rotate video view in android?
body: <p>I want to display video in landscape or portrait mode when user click on custom rotation button. I am using following code.</p>
  
  <p>Video view is rotate but not showing video.</p>
  
  <p>example:
  <a href="https://play.google.com/store/apps/details?id=com.mycall.videorotate" rel="noreferrer">https://play.google.com/store/apps/details?id=com.mycall.videorotate</a></p>
  
  <p>java code:</p>
  
  <pre><code>     videoView.setRotation(90f);
       videoView.setVideoURI(videoUri);
       videoView.start();
  </code></pre>
  
  <p>I read so many tutorial form google and read stack over flow answers but not getting answers.</p>
  
  <p>Please help.</p>