title: How to resize the video in HTML5 dynamically?
body: <p>we have the requirement in the project that having 3 videos in an html page like shown in the following image.</p>
  
  <p><img src="https://i.stack.imgur.com/LFGw0.jpg" alt="enter image description here"></p>
  
  <p>Now by clicking at the bottom-right corner on each of this video user can resize the video and accordingly the size of other videos will change. The problem i am facing here is how to resize the video by just pressing and dragging the mouse click on the bottom-right corner of each video, i've tried using <code>resize</code> property of <code>video</code> tag but it resizes the width and height of the controllers of the video. Do i have to use any third party API or JavaScript or am i doing any silly mistake? </p>
  
  <p>by doing some RND on this i came to know about <code>canvas</code>. but doesn't get any idea how to use it with video together.</p>
  
  <p>can anyone please guide me here? Any kind of help would be greatly appreciated.</p>
  
  <p><strong>CODE :</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
   &lt;style&gt;
     video{
       resize:both;
     }
   &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;video width="320" height="240" controls&gt;
    &lt;source src="movie.mp4" type="video/mp4"&gt;
    &lt;source src="movie.ogg" type="video/ogg"&gt;      
  &lt;/video&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>