title: How to disable "related videos" from an embedded youtube playlist
body: <p>I need to embed a Youtube playlist on an iframe. I don't want the user to be able to exit this playlist, so I need to disable the "related video" and "more video" features (the one that shows more videos when the video is stopped and the one that shows them when the video is finished).</p>
  
  <p>I've tested some workarounds but they only used to work for single videos (not playlist) and most of them stopped working after they changed the way <code>?rel=0</code> behaves. Is there any way to do this? </p>
  
  <p>This is my code:</p>
  
  <pre><code>.rep {
     position: absolute;
     top: 0px;
     left: 0px;
     width: 1280px;
     height: 640px;
     z-index: 6;
  }
  </code></pre>
  
  <pre><code>&lt;iframe class="rep" src="https://www.youtube.com/embed/videoseries?list=PLUl4u3cNGP63gFHB6xb-kVBiQHYe_4hSi" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen&gt;&lt;/iframe&gt;
  
  </code></pre>
  
  <p>EDIT: The videos must be shown in order, therefore I can't use <code>rel</code> to display only videos from the playlist. Plus, if you click on them a youtube page outside of the iframe will appear.</p>