[WordPress] 外掛分享: Livestream Embedder

首頁外掛目錄 › Livestream Embedder
30+
安裝啟用
尚無評分
510 天前
最後更新
問題解決
WordPress 5.0+ v1.0.0 上架:2024-10-06

內容簡介

以下是這篇文章的總結:
Livestream Embedder 是一個 WordPress 外掛,可讓你透過 shortcode 嵌入 YouTube 頻道的即時直播或最新影片。你可以透過外掛設定頁面配置 API 金鑰和頻道 ID。

接下來是一組問題與答案:
問題:Livestream Embedder 可以讓你以什麼方式嵌入 YouTube 頻道的即時直播或最新影片?
答案:透過 shortcode。

問題:使用者在哪裡可以設定 YouTube Data API 金鑰和預設頻道 ID?
答案:透過外掛的設定頁面。

問題:若沒有即時直播可用,Livestream Embedder 會顯示什麼訊息?
答案:錯誤訊息。

問題:使用者需提供什麼金鑰才能使用這個外掛?
答案:自己的 YouTube API 金鑰。

問題:這個外掛如何使用 YouTube iframe API 和 YouTube Data API 來取得 YouTube 影片資料?
答案:透過外掛所需的 YouTube API 金鑰來發送請求。

問題:使用這個外掛代表你同意什麼?
答案:同意遵守 YouTube 的服務條款和隱私政策。

問題:如何找到 YouTube 頻道的 ID?
答案:前往 YouTube 頻道的頁面,查看瀏覽器地址列中 URL,從 '/channel/' 部分之後的字符即為頻道 ID。若頻道使用自定 URL,可以透過檢視網頁原始碼中搜尋 'channelId' 來找到頻道 ID。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Livestream Embedder」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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:

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).

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:

Go to the YouTube channel’s page.
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.
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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon