電視直播頻道

整合電視直播頻道後,使用者就能在支援 Google 助理的裝置 (例如 Google Home、Android、Android TV 或 Google TV 等) 上,使用語音指令觀看及切換電視頻道。

使用語音切換電視頻道
圖 1. 使用語音切換電視頻道。

服務供應商可以使用 BroadcastService、CableOrSatelliteService、TelevisionChannel 和 Organization 標記物件,在媒體動作動態饋給中提供頻道詳細資料,讓 Google 支援下列使用者查詢:

  • 「Ok Google,播放『ExampleTV』。」ExampleTV
  • 「Ok Google,切換到『ExampleTV-HD』。」
  • 「Ok Google,切換到第 7 頻道。」
  • 「Ok Google,ExampleTV-Drama。」

電視直播頻道實體類型

整合電視直播頻道時,媒體目錄動態饋給中必須有 4 種實體類型 (Organization、BroadcastService、CableOrSatelliteService 和 TelevisionChannel)。這些實體類型有助於回答下列問題:

  • 電視服務供應商是誰?提供哪些服務?
  • 每個服務提供的頻道組合 (也稱為頻道陣容) 為何?

以下各節將深入探討實體類型,並提供上述問題的答案。

閱讀下列章節時,請參考以下關係圖:

各種電視直播頻道實體類型之間的連結
圖。各種電視直播頻道實體類型之間的連結。

代表電視服務供應商

電視服務供應商 (又稱電視營運商) 是指為訂閱者提供電視節目套裝組合的機構。在大多數情況下,這也是媒體目錄動態饋給的建立者。這會以 Organization 實體表示。動態饋給中只能加入一個這類 Organization 實體,代表電視營運商。

舉例來說,虛構的 IPTV 服務供應商「ExampleTV Digital」在名為「Digital Prime+」的服務中,為美國使用者提供 180 個頻道。

{
  "@context": ["http://schema.org", {"@language": "en"}],
  "@type":"Organization",
  "@id":"http://example.com/exampletv/digital",
  "name":"ExampleTV Digital",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_digital"
}

代表電視服務供應商提供的服務

CableOrSatelliteService 代表電視業者提供的區域有線電視、衛星電視或網路電視服務。這通常與頻道陣容相關聯,並連結至由「機構」Organization實體代表的電視營運商。視電視營運商提供的服務數量而定,動態消息中可加入一或多個 CableOrSatelliteService 實體。

在本例中,我們建立一個 CableOrSatelliteService 實體,用來描述涵蓋全美範圍的「Digital Prime+」服務。請注意,這個屬性如何使用 provider 屬性參照「ExampleTV Digital」電視服務供應商。

{
  "@context": ["http://schema.org", {"@language": "en"}],
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_iptv/us",
  "name":"Example TV Digital Prime Plus US Service",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/exampletv/digital",
  },
  "areaServed":[
    {
      "@type":"Country",
      "name": "US",
    }
  ]
}

代表電視服務供應商提供的頻道

管道會以 3 個實體一起表示:Organization、BroadcastService 和 TelevisionChannel。

  • BroadcastService 實體是核心實體,代表發布線性節目的電視頻道。這個實體會連結至 Organization 和 TelevisionChannel 實體,並由一組 BroadcastEvent 實體參照,這些實體共同代表節目指南 (或頻道時間表)。

    • BroadcastService 實體也應明確定義深層連結和存取條件。BroadcastService 架構可讓您根據使用者目前的裝置位置 (使用 eligibleRegion 和 ineligibleRegion 屬性),限制對頻道的存取權。詳情請參閱「電視直播授權用途」。
  • Organization 實體代表製作及發布電視節目的頻道。在大多數情況下,這是 BroadcastService 實體的副本,在其他情況下,則可能代表 BroadcastService 所屬的電視網。BroadcastService 實體會使用 broadcastAffiliateOf 屬性參照 Organization 實體。請務必瞭解這兩種實體類型之間的關係。詳情請參閱下方的「瞭解機構和 BroadcastService 實體之間的關係」一節。

  • TelevisionChannel 實體會透過專屬 ID (例如頻道號碼或字串) 識別 BroadcastService,以及在區域有線電視、衛星電視或網路電視服務 (以 CableOrSatelliteService 實體表示) 的供應商資源 (例如網站或應用程式) 中顯示的順序。

TelevisionChannel、CableOrSatelliteService 和 Organization 實體共同構成陣容的概念。

以本例來說,假設「ABC Movies」是「ExampleTV Digital」電視服務供應商在美國提供的「Digital Prime+」服務中,可存取的 180 個頻道之一。這個頻道在節目表和 ExampleTV Digital 的 Android TV 應用程式中,分別顯示為頻道編號 7 和 18。如下所示:

BroadcastService

每個 BroadcastService 實體代表一個頻道 (在本例中,ExampleTV-MovieChannel 和 ExampleTV-ComedyChannel 這兩個虛構頻道各有一個 BroadcastService 實體)


{
 "@context": ["http://schema.org", {"@language": "en"}],
 "@type":"BroadcastService",
 "@id":"https://www.example.com/exampletv/broadcast/movie",
 "name": "ExampleTV-Movie Channel",
 "alternateName": [
    "Example Television Movie Channel",
    "Example TV Movie Channel"
 ],
 "description": "A fictional Internet Protocol TV movie channel.",
 "broadcastDisplayName":"ExampleTV-MovieChannel",
 "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv/movie"
 },
 "identifier": [
    {
       "@type": "PropertyValue",
       "propertyID": "TMS_ID",
       "value": "12345"
    }
 ]
 }

機構

每個機構實體代表一個電視網 (在本例中,ExampleTV Digital Service (機構) 提供 2 個頻道的存取權:ExampleTV-MovieChannel (機構) 和 ExampleTV-ComedyChannel (機構))


{
 "@context": ["http://schema.org", {"@language": "en"}],
 "@type":"Organization",
 "@id":"http://example.com/exampletv/movie",
 "name":"ExampleTV Movie Channel",
 "sameAs": "https://en.wikipedia.org/wiki/exampletv_movie"
 },
 {
 "@context": ["http://schema.org", {"@language": "en"}],
 "@type":"Organization",
 "@id":"http://example.com/exampletv/comedy",
 "name":"ExampleTV Comedy Channel",
 "sameAs": "https://en.wikipedia.org/wiki/exampletv_comedy"
 }

TelevisionChannel

每個 BroadcastService 都有一個 (或多個) TelevisionChannel 實體,代表供應商 (Organization - TVOperator) 提供的 (CableOrSatelliteService) 服務中,這個實體可用的頻道號碼 (在本例中,TelevisionChannel 實體表示 ExampleTV Digital Service IPTV 在頻道 7 提供 ExampleTV Movie 節目,在頻道 9 提供 ExampleTV Comedy 節目)

  {
    "@context": ["http://schema.org", {"@language": "en"}],
    "@type":"TelevisionChannel",
    "@id":"http://example.com/exampletv/extv-movie",
    "broadcastChannelId":"7",
    "broadcastServiceTier":"Standard",
    "inBroadcastLineup":{
      "@type":"CableOrSatelliteService",
      "@id":"http://example.com/example_iptv/us"
    },
    "providesBroadcastService":{
      "@type":"BroadcastService",
      "@id":"https://www.example.com/exampletv/broadcast/movie"
    }
  }

瞭解「機構」和「BroadcastService」實體之間的關係

BroadcastService 實體是代表電視頻道的核心實體。雖然 Organization 實體是必要動態饋給實體,但實際上只存在於允許供應商模擬下列三種例外狀況。因此,除了例外狀況,供應商應遵守下列重點。

有 3 種例外情況,Organization 和 BroadcastService 實體之間必須存在 1:N 關係。以下將說明這些項目:

當地或聯盟頻道

舉例來說,Fox 有地方聯盟頻道,在美國西雅圖稱為 KCPQ,在美國舊金山則稱為 KTVU。KCPQ 可能會播報西雅圖的當地新聞,而 KTVU 則可能專為舊金山使用者群的需求提供節目。在大多數情況下,使用者可能不知道頻道的當地名稱,只知道頻道是 Fox。

在這種情況下,每個當地或聯盟頻道都應以自己的 BroadcastService 實體表示,且所有實體都應連結至一個 Organization 實體。如要切換至這些頻道,使用者可以要求 Google 助理「切換至 Fox」或「切換至 KTVU/KCPQ」。Google 會根據使用者裝置所在位置,以及使用者是否有權觀看所要求的頻道,切換至適當的當地頻道。在先前的範例中,您會建立代表「Fox」的「Organization」實體,並將其連結至兩個 BroadcastService 實體,分別代表「KCPQ」和「KTVU」這兩個當地聯盟。

以下是另一個範例,說明如何為 ABC 頻道及其當地聯盟頻道建立模型:

機構名稱BroadcastService 名稱感情狀態
ABCKAALOrganization 和 BroadcastService 實體之間的一對多關係
ABCKABC
ABCKAEF
ABCKAKE
ABCKAMC
ABCKAPP
ABCKATC
ABCKATN
ABCKATU
ABCKATV

我們來看另一個例子。其中 WXVT 和 WYOU 是本地 CBS 頻道。CBS Sports Network 並非當地頻道,與前述當地聯盟無關。

機構名稱BroadcastService 名稱感情狀態
CBSWXVTOrganization 和 BroadcastService 實體之間的一對多關係
CBSWYOU
CBS Sports NetworkCBS Sports Network HDOrganization 和 BroadcastService 實體之間是一對一關係

為加深印象,我們以 EPIX 和 EPIX 2 頻道為例。兩者都在全國播出,提供完全不同的節目內容,並非同一頻道的變體,因此不屬於地方電視網。

機構名稱 BroadcastService 名稱 感情狀態
EPIX EPIX Organization 和 BroadcastService 實體之間是一對一關係
EPIX 2 EPIX 2 Organization 和 BroadcastService 實體之間是一對一關係

時移頻道

在這種情況下,每個時移頻道都應以各自的 BroadcastService 實體表示,且所有實體都應連結至一個 Organization 實體。以下範例說明如何建立時移頻道模型:

機構名稱BroadcastService 名稱感情狀態
STARZ EncoreSTARZ Encore WestOrganization 和 BroadcastService 實體之間的一對多關係
STARZ EncoreSTARZ Encore East

串流品質不同的頻道

舉例來說,STARZ Encore Action HD 和 STARZ Encore Action SD 頻道提供的節目 (EPG) 完全相同,兩者唯一的差異在於串流品質。在這種情況下,每個影片畫質串流頻道都應以各自的 BroadcastService 實體表示,且所有實體都應連結至一個 Organization 實體。

以下範例說明如何為串流品質不同的管道建立模型:

機構名稱BroadcastService 名稱感情狀態
SBSSBSOrganization 和 BroadcastService 實體之間的一對多關係
SBSSBS HD

以下是複雜的用途範例,整合了所有用途:

機構名稱 BroadcastService 名稱 感情狀態
Starz STARZ East Organization 和 BroadcastService 實體之間存在 1:N 關係,這是因為時移頻道
Starz STARZ West
STARZ Kids & FamilySTARZ Kids & FamilyOrganization 和 BroadcastService 實體之間是一對一關係
STARZ Encore BlackSTARZ Encore BlackOrganization 和 BroadcastService 實體之間是一對一關係
STARZ Encore ClsicSTARZ Encore ClassicOrganization 和 BroadcastService 實體之間是一對一關係
STARZ Encore FamilySTARZ Encore FamilyOrganization 和 BroadcastService 實體之間是一對一關係
STARZ Encore SuspenseSTARZ Encore SuspenseOrganization 和 BroadcastService 實體之間是一對一關係
STARZ Encore ActionSTARZ Encore Action HDOrganization 和 BroadcastService 實體間的 1:N 關係 (因串流品質差異而異)
STARZ Encore ActionSTARZ Encore Action SD
STARZ EncoreSTARZ Encore WestOrganization 和 BroadcastService 實體之間存在 1:N 關係,這是因為時移頻道
STARZ EncoreSTARZ Encore East

範例

提供區域節目表的全國電視服務供應商

機構

假設電視服務供應商「Example Cable TV Company」(Organization) 在紐約和舊金山這兩個地區,透過有線電視網路提供電視直播服務。這項服務包含兩個頻道:ExampleTV (Organization) 和 ExampleTV2 (Organization):

{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id": "http://example.com/example_cable_tv_company",
  "name": "Example Cable TV Company",
  "sameAs": "https://en.wikipedia.org/wiki/example_cable_company"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv",
  "name":"ExampleTV Network",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv2",
  "name":"ExampleTV2 Network",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv2"
}

BroadcastService

這些 BroadcastService 實體提供深層連結的詳細資料,以及 ExampleTV 頻道 (HD) 和 ExampleTV2 頻道的存取需求:

{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv/broadcast/hd",
  "name": "ExampleTV HD",
  "description": "A fictional TV broadcast service in HD",
  "broadcastDisplayName":"ExampleTV-HD",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": [
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/exampletv/broadcast/hd?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.org/DesktopWebPlatform",
          "http://schema.org/MobileWebPlatform",
          "http://schema.org/AndroidPlatform",
          "http://schema.org/AndroidTVPlatform",
          "http://schema.org/IOSPlatform"
        ]
      },
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/exampletv/broadcast/androidtv/hd?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.googleapis.com/GoogleVideoCast"
        ]
      }
    ],
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/exampletv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic",
        "commonTier": true
      },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "102610"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv-12345"
    }
  ]
},
{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv2/broadcast",
  "name": "ExampleTV2",
  "description": "A fictional TV broadcast service ExampleTV 2",
  "broadcastDisplayName":"ExampleTV2",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv2"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": [
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/exampletv2/broadcast/?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.org/DesktopWebPlatform",
          "http://schema.org/MobileWebPlatform",
          "http://schema.org/AndroidPlatform",
          "http://schema.org/AndroidTVPlatform",
          "http://schema.org/IOSPlatform"
        ]
      },
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/exampletv2/broadcast/androidtv/?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.googleapis.com/GoogleVideoCast"
        ]
      }
    ],
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/exampletv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic",
        "commonTier": true
      },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "333339"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv2-11115"
    }
  ]
}

CableOrSatelliteService

這些 CableOrSatelliteService 實體說明瞭紐約 (DMA_ID=501) 和舊金山灣區 (DMA_ID=807) 的有線電視服務,這些服務是由全國性電視服務供應商「Example Cable TV Company」(Organization) 提供:

{
  "@context":"http://schema.org",
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_cable_tv_company_new_york",
  "name":"Example Cable TV Company - New York",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/example_cable_tv_company",
  },
  "areaServed":[
    {
      "@type": "GeoShape",
      "@id": "http://example.com/newyork_01",
      "identifier": [
        {
          "@type": "PropertyValue",
          "propertyID": "DMA_ID",
          "value": "501"
        }
      ]
    }
  ]
},
{
  "@context":"http://schema.org",
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_cable_tv_company_san_francisco_bay",
  "name":"Example Cable TV Company - San Francisco Bay",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/example_cable_tv_company",
    "name": "Example Cable TV Company"
  },
  "areaServed":[
    {
      "@type": "GeoShape",
      "@id": "http://example.com/bayarea_01",
      "identifier": [
        {
          "@type": "PropertyValue",
          "propertyID": "DMA_ID",
          "value": "807"
        }
      ]
    }
  ]
}

TelevisionChannel

這些 TelevisionChannel 實體表示區域電視服務供應商「Example Cable TV Company - San Francisco Bay」在第 7 頻道提供「ExampleTV-HD」,在第 11 頻道提供「ExampleTV2」,而區域電視服務供應商「Example Cable TV Company - New York」在第 12 頻道提供「ExampleTV-HD」,在第 4 頻道提供「ExampleTV2」:

{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company_san_francisco/exampletv",
  "broadcastChannelId":"7",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company_san_francisco_bay"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/broadcast/hd"
  }
},
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company_san_francisco/exampletv2",
  "broadcastChannelId":"11",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company_san_francisco_bay"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv2/broadcast"
  }
},
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company_new_york/exampletv",
  "broadcastChannelId":"12",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company_new_york"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/broadcast/hd"
  }
},
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company_new_york/exampletv2",
  "broadcastChannelId":"4",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company_new_york"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv2/broadcast"
  }
}

網路上提供的全國電視服務供應商

機構

虛構的網際網路通訊協定電視服務供應商「ExampleTV Digital Service」(Organization) 提供網際網路電視直播服務,內含以下兩個頻道:「ExampleTV-Movie」(Organization) 和「ExampleTV-Comedy」(Organization):

{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/digital",
  "name":"ExampleTV Digital Service",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_digital_service"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/movie",
  "name":"ExampleTV Movie",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_movie"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/comedy",
  "name":"ExampleTV Comedy",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_comedy"
}

BroadcastService

這兩個 BroadcastService 實體提供深層連結的詳細資料,以及虛構頻道「ExampleTV-Movie」和「ExampleTV-Comedy」的存取需求:

{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv/broadcast/movie",
  "name": "ExampleTV-Movie",
  "description": "A fictional Internet Protocol TV movie channel.",
  "broadcastDisplayName":"ExampleTV-Movie",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv/movie"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "http://www.example.com/exampletv/broadcast/movie?autoplay=true",
      "inLanguage": "en",
      "actionPlatform": [
        "http://schema.org/DesktopWebPlatform",
        "http://schema.org/MobileWebPlatform",
        "http://schema.org/AndroidPlatform",
        "http://schema.org/AndroidTVPlatform",
        "http://schema.org/IOSPlatform",
        "http://schema.googleapis.com/GoogleVideoCast"
      ]
    },
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/exampletv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic",
        "commonTier": true
      },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "12345"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv-movie-33345"
    }
  ]
},
{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv/broadcast/comedy",
  "name": "ExampleTV-Comedy",
  "description": "A fictional Internet Protocol TV comedy channel.",
  "broadcastDisplayName":"ExampleTV-Comedy",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv/comedy"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "http://www.example.com/exampletv/broadcast/comedy?autoplay=true",
      "inLanguage": "en",
      "actionPlatform": [
        "http://schema.org/DesktopWebPlatform",
        "http://schema.org/MobileWebPlatform",
        "http://schema.org/AndroidPlatform",
        "http://schema.org/AndroidTVPlatform",
        "http://schema.org/IOSPlatform",
        "http://schema.googleapis.com/GoogleVideoCast"
      ]
    },
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/exampletv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic",
        "commonTier": true
      },
      "eligibleRegion": [
        {
          "@type": "Country",
          "name": "US"
        }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "15555"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv-comedy-12323"
    }
  ]
}

CableOrSatelliteService

這項 CableOrSatelliteService 說明瞭涵蓋全國的服務供應商「ExampleTV Digital Service」:

{
  "@context":"http://schema.org",
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_iptv/us",
  "name":"Example TV Digital Service - US",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/exampletv/digital",
  },
  "areaServed":[
    {
      "@type":"Country",
      "name": "US",
    }
  ]
}

TelevisionChannel

這些 TelevisionChannel 實體表示 ExampleTV Digital Service IPTV 在頻道 ExTV-Movie 上提供 ExampleTV Movie 節目,在頻道 ExTV-Comedy 上提供 ExampleTV Comedy 節目:

{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/exampletv/extv-movie",
  "broadcastChannelId":"ExTV-Movie",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_iptv/us"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/broadcast/movie"
  }
},
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/exampletv/extv-comedy",
  "broadcastChannelId":"ExTV-Comedy",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_iptv/us"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/broadcast/comedy"
  }
}

電視服務供應商可切換的頻道陣容

機構

虛構電視服務供應商「ExampleTV Digital Service」(Organization) 透過販售的機上盒,讓使用者存取虛構的 IPTV 頻道「ExampleTV-Sports」(Organization) 和「ExampleTV-Drama」(Organization)。

{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/digital",
  "name":"ExampleTV Digital Service",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_digital_service"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/sports",
  "name":"ExampleTV Sports",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_sports"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv/drama",
  "name":"ExampleTV Drama",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv_drama"
}

BroadcastService

這兩個 BroadcastService 實體會說明 ExampleTV-Sports 和 ExampleTV-Drama 頻道 (深層連結為選用):

{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv/sports/broadcast",
  "name": "ExampleTV-Sports",
  "description": "A fictional Internet Protocol TV service that streams live sports events",
  "broadcastDisplayName":"ExampleTV-Sports",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv/sports"
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv-sports-11123"
    }
  ]
},
{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/exampletv/drama/broadcast",
  "name": "ExampleTV-Drama",
  "description": "A fictional Internet Protocol TV service that streams TV drama shows",
  "broadcastDisplayName":"ExampleTV-Drama",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv/drama"
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "exampletv-drama-11500"
    }
  ]
}

CableOrSatelliteService

這項 CableOrSatelliteService 說明瞭涵蓋全國的服務供應商「ExampleTV Digital Service」:

{
  "@context":"http://schema.org",
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_iptv/us",
  "name":"Example TV Digital Service - US",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/exampletv/digital",
  },
  "areaServed":[
    {
      "@type":"Country",
      "name": "US",
    }
  ]
}

TelevisionChannel

這些 TelevisionChannel 實體表示 ExampleTV Digital Service IPTV 在頻道 ExTV-Movie 上提供 ExampleTV Movie 節目,在頻道 ExTV-Comedy 上提供 ExampleTV Comedy 節目:

{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/exampletv/extv-sports",
  "broadcastChannelId":"ExampleTV-Sports",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_iptv/us"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/drama/broadcast"
  }
},
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/exampletv/extv-drama",
  "broadcastChannelId":"ExampleTV-Drama",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_iptv/us"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/exampletv/drama/broadcast"
  }
}

提供聯盟或當地頻道的電視服務供應商

機構

電視服務供應商 (也稱為電視營運商)「Example Cable TV Company」(Organization) 在美國透過有線電視網路提供電視直播服務 (名為「Example Cable TV Service」,CableOrSatelliteService)。這項服務包含一個電視網:ExampleTV Network (Organization):

{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id": "http://example.com/example_cable_tv_company",
  "name": "Example Cable TV Company",
  "sameAs": "https://en.wikipedia.org/wiki/example_cable_company"
},
{
  "@context":"http://schema.org",
  "@type":"Organization",
  "@id":"http://example.com/exampletv",
  "name":"ExampleTV Network",
  "sameAs": "https://en.wikipedia.org/wiki/exampletv"
}

BroadcastService

ExampleTV Network (機構) 有 2 個本地頻道,分別是紐約的 NYTV (BroadcastService) 和紐澤西的 NJTV (BroadcastService)。這些 BroadcastService 實體提供 NYTV 和 NJTV 頻道的深層連結和存取需求詳細資料。請注意,這兩個 BroadcastService 都透過 broadcastAffiliateOf 屬性連線至同一個機構 (ExampleTV Network):

{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/nytv/broadcast",
  "name": "NYTV",
  "description": "A fictional TV broadcast service",
  "broadcastDisplayName":"NYTV",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": [
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/nytv/broadcast/hd?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.org/DesktopWebPlatform",
          "http://schema.org/MobileWebPlatform",
          "http://schema.org/AndroidPlatform",
          "http://schema.org/AndroidTVPlatform",
          "http://schema.org/IOSPlatform"
        ]
      }
    ],
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/nytv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic"
      },
      "eligibleRegion": [
          {
              "@id": "http://sling.com/dma/501",
              "@type": "GeoShape",
              "addressCountry": "US",
              "identifier": {
                  "@type": "PropertyValue",
                  "propertyID": "DMA_ID",
                  "value": "501"
              }
          }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "102610"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "nytv-12345"
    }
  ]
},
{
  "@context":"http://schema.org",
  "@type":"BroadcastService",
  "@id":"https://www.example.com/njtv/broadcast/hd",
  "name": "NJTV HD",
  "description": "A fictional TV broadcast service in HD",
  "broadcastDisplayName":"NJTV-HD",
  "broadcastAffiliateOf":{
    "@type":"Organization",
    "@id":"http://www.example.com/exampletv"
  },
  "potentialAction": {
    "@type": "WatchAction",
    "target": [
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://www.example.com/njtv/broadcast/hd?autoplay=true",
        "inLanguage": "en",
        "actionPlatform": [
          "http://schema.org/DesktopWebPlatform",
          "http://schema.org/MobileWebPlatform",
          "http://schema.org/AndroidPlatform",
          "http://schema.org/AndroidTVPlatform",
          "http://schema.org/IOSPlatform"
        ]
      }
    ],
    "actionAccessibilityRequirement": {
      "@type": "ActionAccessSpecification",
      "category": "subscription",
      "requiresSubscription": {
        "@type": "MediaSubscription",
        "@id": "http://www.example.com/njtv/basic_subscription",
        "name": "Basic subscription",
        "identifier": "example.com:basic"
      },
      "eligibleRegion": [
          {
              "@id": "http://sling.com/dma/807",
              "@type": "GeoShape",
              "addressCountry": "US",
              "identifier": {
                  "@type": "PropertyValue",
                  "propertyID": "DMA_ID",
                  "value": "807"
              }
          }
      ]
    }
  },
  "identifier": [
    {
      "@type": "PropertyValue",
      "propertyID": "TMS_ID",
      "value": "102611"
    },
    {
      "@type": "PropertyValue",
      "propertyID": "_PARTNER_ID_",
      "value": "njtv-12345"
    }
  ]
}

CableOrSatelliteService

CableOrSatelliteService 實體說明全國電視服務供應商「Example Cable TV Company」 (Organization) 提供的有線電視服務:

{
  "@context":"http://schema.org",
  "@type":"CableOrSatelliteService",
  "@id":"http://example.com/example_cable_tv_company/service",
  "name":"Example Cable TV Service",
  "provider": {
    "@type": "Organization",
    "@id": "http://example.com/example_cable_tv_company",
    "name": "Example Cable TV Company"
  },
  "areaServed": {
    "@type": "Country",
    "name": "US"
  }
}

TelevisionChannel

這些 TelevisionChannel 實體表示電視服務供應商「Example Cable TV Company」在第 7 頻道提供「NYTV」,在第 12 頻道提供「NJTV HD」:

{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company/nytv",
  "broadcastChannelId":"7",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company/service"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/nytv/broadcast"
  }
}
{
  "@context":"http://schema.org",
  "@type":"TelevisionChannel",
  "@id":"http://example.com/example_cable_tv_company/njtv",
  "broadcastChannelId":"12",
  "broadcastServiceTier":"Standard",
  "inBroadcastLineup":{
    "@type":"CableOrSatelliteService",
    "@id":"http://example.com/example_cable_tv_company/service"
  },
  "providesBroadcastService":{
    "@type":"BroadcastService",
    "@id":"https://www.example.com/njtv/broadcast/hd"
  }
}

在 Android TV 上切換頻道

整合電視直播頻道後,使用者可以透過語音指令要求 Google 切換頻道。Google 會使用自然語言處理 (NLP) 技術,從使用者查詢中擷取參數,並判斷使用者想觀看的頻道。Google 接著會透過下列其中一種方式處理頻道切換:

  • 由 Google 執行:Google 會使用媒體動作動態消息中提供的深層連結切換頻道。Google 會根據動態饋給中的資訊,查詢使用者想觀看頻道的深層連結。Google 會直接將使用者帶往服務供應商應用程式或平台上的內容。
  • 由電視服務供應商處理:Google 會向服務供應商傳送要求。Google 和服務供應商可透過多種方式協調頻道切換作業。如要瞭解如何與 Google 其他平台 (例如 AndroidTV、Made By Google、Assistant for Operators) 整合,請與 Google 聯絡。

媒體動作動態饋給中需要的資訊類型,取決於服務供應商希望 Google 如何處理頻道切換。