title: Using Unity VideoPlayer to slowly pause/resume the videos when key pressed
body: <p>I'm working on a script where there is a video divided into 3 parts with a respective 3 audios for them that run one after the previous one is finished (both video and audio), however the video need to play only when holding a key (in my case its "space")i successfully made the video and the audio play while pressing on space:</p>
  
  <pre><code>if (Input.GetButton ("Jump")) {
                  vp.Play ();
                  if (!ASource.isPlaying) {
                      ASource.Play ();
                  }
  </code></pre>
  
  <p>And pause while not :</p>
  
  <pre><code>else {
                  vp.Pause ();
                  ASource.Pause ();
  
              }
  </code></pre>
  
  <p>But its a hard cut, im looking for a way to make it smoothly pause/resume, i tried making a function : </p>
  
  <pre><code>public void videoPause() {
          for (i = 0; i &lt; 10; i++) {
              vp.playbackSpeed = vp.playbackSpeed / i;
          }
  
      }
  </code></pre>
  
  <p>same for resume but with * instead of  and i-- but it didint work, any idea how to make it work please ?</p>