YouTube Live Broadcasts
The YouTube Streaming Plugin enables seamless integration of YouTube videos and live streams into your WordPress site. With an intuitive interface, you can effortlessly embed and manage video content.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kuyamecky/youtube-live-streaming-plugin/archive/refs/heads/main.zipYouTube Live Broadcasts Plugin
Description
The YouTube Live Broadcasts plugin automatically fetches and displays the latest live broadcast from a specified YouTube channel on your WordPress site.
Features
- Fetch and display the latest live broadcast from a YouTube channel.
- Easy to configure via the WordPress admin dashboard.
- Shortcode support to embed live broadcasts in posts or pages.
Installation
- Download: Obtain the plugin files.
- Upload: Transfer the plugin files to the
/wp-content/plugins/directory. - Activate: Enable the plugin via the 'Plugins' menu in WordPress.
Configuration
-
API Key: Obtain a YouTube Data API v3 key from the Google Cloud Console.
- Go to the Google Cloud Console.
- Create a new project or select an existing project.
- Navigate to
APIs & Services>Library. - Search for
YouTube Data API v3and enable it. - Go to
APIs & Services>Credentials. - Click on
Create Credentialsand selectAPI Key. - Copy the generated API key.
-
Channel ID: Find the Channel ID of the YouTube channel you want to fetch live broadcasts from.
- Go to the YouTube channel.
- Click on the channel name to go to the channel's homepage.
- The Channel ID is the string of characters after
/channel/in the URL. For example, inhttps://www.youtube.com/channel/UC1234567890,UC1234567890is the Channel ID. - Note: The Channel ID is not the same as the custom URL or username (e.g.,
@DEARLOTTERIESLIVE). - You can use this to convert the channel tag into channel ID UC Converter.
-
Setup in Plugin:
- Navigate to
Settings>YouTube Live Broadcastsin the WordPress admin dashboard. - Enter your YouTube API key and Channel ID in the provided fields.
- Click
Save Changesto store your settings.
- Navigate to
Setup
- Navigate to
Settings>YouTube Live Broadcastsin the WordPress admin dashboard. - Enter your YouTube API key and Channel ID in the provided fields.
- Click
Save Changesto store your settings.
Usage
To display the latest live broadcast from the specified YouTube channel, use the shortcode [youtube_live] in your posts or pages.
Shortcode
[youtube_live]: Embeds the latest live broadcast from the configured YouTube channel.
Embed Version
To use the embed version of the YouTube Live Broadcasts plugin, follow these steps:
-
Embed Code: Obtain the embed code for the live broadcast from YouTube.
- Go to the live broadcast on YouTube.
- Click on the
Sharebutton below the video. - Select
Embedand copy the provided embed code.
-
Embed in WordPress:
- Navigate to the post or page where you want to embed the live broadcast.
- Switch to the
Texteditor in the WordPress editor. - Paste the embed code where you want the live broadcast to appear.
- Switch back to the
Visualeditor to see the embedded live broadcast.
-
Save Changes: Update or publish the post or page to save your changes.
By following these steps, you can easily embed a YouTube live broadcast directly into your WordPress site without using the shortcode.