Embed.js
First you need an embed.js file provided by administrator for your website that should be (but it’s not a must) put in public directory (accesible through https://linktoyourwebsite.com/embed.js)
By adding script tag to your website with embed.js as src (https://linktoyourwebsite.com/path/to/embed.js) you’re almost done!
Attributes of script tag
For embed.js to function correctly, you will need two attributes on script tag:
data-lm-partner - provided by administrator.
data-lm-link - link to your video, that will be displayed, you can add &iframeVideoLink=https://link/to/your/video same as mentioned here.
Additionaly, you can add these attributes:
data-lm-callback - instead of data-lm-link you can pass it if you want to use a function instead of link, more information here
data-lm-show-before-live-time - you can pass number in this attribute, so the embed frame won’t show until video start time is lower than amount of hours you provided.
Example:
Video start time is 2024.04.10 18:00, you entered 8, so the embed won’t show until 2024.04.10 10:00.
data-lm-show-after-live-time - same as above, but works the other way around.
Example:
Video start time is 2024.04.10, you entered 8, so the embed will stay until 2024.04.11 02:00.
data-lm-position - accepts left, right, bottom, this will determine what the embed position will be on your website.
data-lm-position-b-offset - a number added to bottom property, so if you have anything on the bottom of your website, the embed won’t be over it. You need to add “px”, ”%”, “vh”, “dvh” or other units at the end.
Correctly added script tag should look something like this:
<script src="https://linktoyourwebsite.com/path/to/embed.js" data-lm-partner="partner" data-lm-link="https://link/to/your/video"></script>