title: Playing videos in electron
body: <p>I'm currently writing an electron application to run as a desktop app on Windows.
  I'm trying to embed a video on the page to all the end user to play it and it appear impossible.</p>
  <p>Sample code is:</p>
  <pre><code> &lt;video  controls=&quot;&quot;&gt;
      &lt;source src=&quot;../../../2.mp4&quot; type=&quot;video/mp4&quot;&gt;
   &lt;/video&gt;
  </code></pre>
  <p>I have checked and tried the following solutions and a few others:</p>
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/43565472/cannot-play-offline-video-in-production-electron-app">Cannot play offline video in production electron app</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/42708165/video-tag-in-electron">Video tag in electron</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/55074055/electron-video-cannot-play">Electron video cannot play</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/45554249/playing-local-mp4-file-in-electron">Playing local mp4 file in electron</a></p>
  </li>
  </ul>
  <p>And I've unfortunately had no success.</p>
  <p>Thanks in advance for any help or support.</p>
  <p>Regards</p>
  <p>Patrick</p>