Use Video/Images from Media in Embedded HTML

I have uploaded a mp4 video to library, is there any way to use such file in Embedded HTML? What will be URL of resource in that case.
Thanks

If you assign the file to the display directly, then it will be available as just “id.mp4”, where id is the ID assigned to it in the Media Library. So for example, 24.mp4.

1 Like

@alex Thanks for prempt reply!
src="24.mp4" will be enough to get it loaded correctly?

My code block:

<section>
  <div class="vignette"></div>
  <h1>Advertising.<br>Digital.<br>Social.</h1>
    <source id="source_polar_mp4" src="24.mp4" type="video/mp4;codecs=&quot;avc1.42E01E, mp4a.40.2&quot;">
  </video>
</section>

Yes it should be, assuming you have assigned the file to the display manually (on the Displays page), and that the media ID of your file is indeed 24.

1 Like