跳到内容

Livestream Embedder

v1.0.0

SAT · 2024年10月7日 上架

Embeds a YouTube live stream or the most recent video from a channel using a simple shortcode.

正在使用
20+
评分
暂无
累计下载
1,226
最近更新
2024年10月7日
需要 WordPress 5.0+已测试到 6.6.12

贡献者

截图

Plugin Settings Page: Settings page where you enter the API key and default channel ID.
Plugin Settings Page: Settings page where you enter the API key and default channel ID.

Livestream Embedder allows you to embed a live stream from a YouTube channel or the most recent video using a shortcode. You can configure the API key and channel ID via the plugin’s settings page.

Features:
* Embed a live stream or most recent video with a shortcode.
* Configure the YouTube Data API key and default channel ID via settings.
* Display error messages if no live stream is available.
* Responsive video embeds.

Note on External Services:
This plugin uses the YouTube iframe API and YouTube Data API to fetch video data from YouTube and display it. Users must provide their own YouTube API key, which is required to make requests to the YouTube Data API v3. The data requested includes information about the live streams or videos on a given YouTube channel.

By using this plugin, you agree to YouTube’s Terms of Service and Privacy Policy.

Shortcode Usage:

  1. To embed a live stream from a specific channel:
    [livestream_embedder channel_id=”CHANNEL_ID”]

    Replace CHANNEL_ID with the actual YouTube channel ID (e.g. UCabcdefghijklmnopqrstuvwx).

  2. If you’ve configured a default channel ID in the plugin settings, you can use the shortcode without the channel_id attribute:
    [livestream_embedder]

How to Find the Channel ID:

  1. Go to the YouTube channel’s page.
  2. Look at the URL in your browser’s address bar. The channel ID is the string of characters after the “/channel/” part of the URL.
  3. If the channel uses a custom URL, you can find the channel ID by viewing the page source and searching for “channelId”.

License

This plugin is licensed under the GPLv2 or later. You can modify and distribute it under the terms of the GNU General Public License as published by the Free Software Foundation.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums