lbry.com/content/faq/embed.md
Thomas Zarebczan 1012ff4df5
Update embed.md
2021-08-26 11:18:36 -04:00

48 lines
2.3 KiB
Markdown

---
title: How do I share or embed LBRY videos on other websites?
category: publisher
order: 3
---
LBRY videos can be embedded on your blog or other sites you want the video to play directly on. This is done via a simple HTML code snippet that includes an iframe to Odysee.com.
## How to embed a video via an iframe
1. From the content page, click the Share button.
![](https://spee.ch/5/b1d1d3c0f3cc4d98.png)
2. Click the **<>** icon to show the embed snippet, and click the Copy button.
![](https://spee.ch/b/d34ce0643fb7725a.png)
3. Paste the embed code into your website. Depending on what platform you are using, this may require an HTML code block.
![](https://spee.ch/5/embed-3.jpg)
*Note: If your site has a content security policy, [you may need to allow the Odysee domain](https://docs.hcaptcha.com/#content-security-policy-settings).*
## What does an embed look like?
Here's a sample Odysee.com iframe embed, generated by following the above steps for the video [Introducing Odysee](https://open.lbry.com/@lbry:3f/odysee:7?r=9PLaAYVfz6NLQa81fdSLpcvVhWm7joNV):
<iframe id="lbry-iframe" width="560" height="315" src="https://odysee.com/$/embed/odysee/7a416c44a6888d94fe045241bbac055c726332aa?r=9PLaAYVfz6NLQa81fdSLpcvVhWm7joNV" allowfullscreen></iframe>
## Embed videos in markdown posts and comments on LBRY
You can also embed a LBRY URL in your markdown (.md) and comments posts on LBRY. It can be a vanity, canonical, or permanent URL. See sample markdown on our [Odysee.com blog post about embeds](https://odysee.com/@lbry:3f/embedforscience:0). It will open in the pop out player if available, or navigate to video page if not (actual embedding in this case to come later).
Syntax examples inside markdown file:
```
<iframe src="lbry://@lbry#3f/befreeonlbry#5"></iframe>
or
lbry://@lbry#3f/befreeonlbry#5
or
https://lbry.tv/befreeonlbry
```
## What else do I need to know?
1. When an embedded video is played, it will count as a view for your content.
1. If a user visiting the site has an Odysee.com account, their views may also [count as tips](/faq/rewards#contentview).
1. You'll be credited with an invite if the user signs up for an Odysee.com account later (and their first video play was from your embed).
## I'm in need of some assistance, can you help?
Of course, we are always here to help! Check out our [help page](/faq/support) on how to reach us.