In order to create a Live Stream on your site, you’ll need to start at YouTube by enabling Live Events on your settings page.įrom the YouTube Dashboard, click on Channel > Live Events > Enable. You can stream a live broadcast using YouTube, and embed the stream during or after the event on your site. ↑ Table of Contents ↑ Stream a Live Broadcast with YouTube Once your comment is posted/approved, you will be able to watch the video directly from the comment area. Simply grab the URL of any YouTube video and paste it directly into the comment field: If you want, you may also embed YouTube videos when you leave comments on any site. ↑ Table of Contents ↑ Add to your Sidebar/Footerĭepending on the location of your theme’s widget areas, you can also embed YouTube videos in your sidebar or footer by copying and pasting the shortcode into a Text Widget. The playlist will look like the one below - you can preview it even before publishing the post: Then, paste it to the YouTube block or add it as a shortcode to the shortcode block using the format below. That copies the entire playlist instead of a single video. Simply copy the playlist’s URL from your web browser’s address bar while viewing the playlist:īe sure to copy the full URL, including &list=… at the end. You can also embed a YouTube playlist instead of a single video. To specify a start and end time for a video, do the same as the above but add the end time as shown:.To start at a certain point in the video, convert the time of that point from minutes and seconds to all seconds, then add that number as shown (using an example start point of 1 minute 15 seconds):.To show only related videos from the same channel after the video is done:.To specify the width and height explicitly:.To embed the video with default width and height adapted to your theme:.These are the optimizations that we currently support: Produces this video, which is narrower than the default embed without custom width and height settings: YouTube does not offer an option to disable related videos entirely. You can restrict related videos to only show videos from the same channel by appending &rel=0. It will automatically adapt to your theme’s content length and give you preferred dimensions. You can specify the width and height of the embedded video by adding &w=. ↑ Table of Contents ↑ Video Customization Options Note: The shortcode will not give you a preview of the video in your editor, you will need to preview or publish your post first. You can add the shortcode to any page or post using a shortcode block. Be sure to replace the URL listed here with the URL of your video. Then create a shortcode using the format below. You can do this by copying the video URL: To customize the video’s size and settings, use a shortcode. ↑ Table of Contents ↑ Embed with a Shortcode You must use the full YouTube video link, not a shortlink, for the video to be embedded. If you’re using the Classic Editor, you’ll need to paste the URL in the Visual editor on a line by itself. We take care of the rest! You will see the video inside the editor right away: in an empty Paragraph block) and it will automatically get converted to the YouTube block. You can also paste it onto a new line (i.e. Paste the URL into the YouTube block as you draft your post or page. To quickly embed a YouTube video, simply copy the video’s URL from your web browser’s address bar while viewing the video:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |