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/jasonraveling/wunrav-youtube-live-embed/archive/refs/heads/master.zipThis is a WordPress plugin that uses the YouTube API to detect if a channel is live streaming and then embeds the live YouTube video on a page using a shortcode.
Usage
Place this plugin in your plugins folder, enable it and then start using the [live-youtube] shortcode wherever you want live video to appear. A slidout will appear on every page of your site once the channel is live. The slideout message can be customized from the WordPress admin.
1. First parameter: CHANNEL ID
How to find your channel ID:
- Open https://youtube.com
- At top left, below the logo, click "My Channel"
- It will open an address like https://www.youtube.com/channel/[LOTS-OF-NONSENSE]
- Copy the [LOTS-OF-NONSENSE] part of the URL and paste it in the Channel ID field of your WordPress settings.
2. Second parameter: API KEY
To create your API key:
- Create a project in the google developer console. https://console.developers.google.com
- Enable YouTube API for that project.
- Create a credential of type "Public API Access", a "Server key", with the IPs from the server you will query the API from.
- This will create an API Key for you. Copy it and paste it into the API Key field in the WordPress settings.
Todo List
- Add ability to customize the off-air message.
Releases
4 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.