EMBED URL

API 文檔

透過Nettv.live官方API,您可以將直播能力嵌入到自己的網站或應用中。

嵌入播放機

你也可以直接嵌入官方播放頁面,適合快速集成。

<!-- Insert into your page -->
<iframe
  src="https://www.nettv.live/api"
  width="100%"
  height="500"
  frameborder="0"
  allowfullscreen></iframe>
// Dynamically inject an iframe into a container
const box = document.getElementById("player-container");
const iframe = document.createElement("iframe");
iframe.src = "https://www.nettv.live/api";
iframe.width = "100%";
iframe.height = "500";
iframe.style.border = "0";
iframe.allowFullscreen = true;
box.appendChild(iframe);

單獨頻道調用代碼生成器

輸入頻道ID,自動生成調用連結、台標連結,並可預覽與複製嵌入程式碼。

頻道 ID 可到我們網站上獲取。
頻道ID只能是數位,請輸入有效數字。
台標根據頻道id動態生成,可直接訪問。
台標預覽區域
輸入頻道id並生成後,此處顯示預覽
// 請輸入頻道ID並點擊"生成程式碼"
// 請輸入頻道 ID 並點擊"生成程式碼"
EMBED URL

Live TV API Docs

With the official Nettv.live API you can embed live TV into your own website or application.

Embed the Player

You can also embed the official player page directly for quick integration.

<!-- Insert into your page -->
<iframe
  src="https://www.nettv.live/api"
  width="100%"
  height="500"
  frameborder="0"
  allowfullscreen></iframe>
// Dynamically inject an iframe into a container
const box = document.getElementById("player-container");
const iframe = document.createElement("iframe");
iframe.src = "https://www.nettv.live/api";
iframe.width = "100%";
iframe.height = "500";
iframe.style.border = "0";
iframe.allowFullscreen = true;
box.appendChild(iframe);

Channel Embed Code Generator

Enter a channel ID to auto-generate the embed link, logo link, and ready-to-copy code.

You can find channel IDs on our website.
Channel ID must be numeric.
Logo is generated dynamically from the channel ID.
Logo preview area
Enter a channel ID and generate to see the preview
// Enter a channel ID and click "Generate Code"
// Enter a channel ID and click "Generate Code"