Skip to content

Wordpress plugin that uses a shortcode to display the current YouTube live stream when given a channel id.

License

Notifications You must be signed in to change notification settings

nmbgeek/wordpress-youtube-live-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Live Stream Embed for WordPress

  1. Get a YouTube API Key by following the steps here: https://developers.google.com/youtube/v3/getting-started
  2. Install plugin and set your API Key on the settings page. Alternatively it can be defined in wp-config.php with define('YOUTUBE_LIVESTREAM_API_KEY', 'YOUR_YOUTUBE_API_KEY_HERE');
  3. Set a message to display if the live stream is not active or there is a problem getting the stream.
  4. Add your shortcode where you want your stream to appear. Be sure to set the channel_id to your own in the shortcode. autoplay is optional and will default to false if not specified. [youtube_livestream channel_id="YOUR_CHANNEL_ID" autoplay="true"]

About

Wordpress plugin that uses a shortcode to display the current YouTube live stream when given a channel id.

Resources

License

Stars

Watchers

Forks

Packages

No packages published