Re: [media-and-entertainment] Channels 2.0 (#107)

Here is some preliminary extensible markup representing a channel description. While a work in progress, it includes channel metadata (e.g., name and description), multimedia (e.g., logos), extensible menu data, and settings and configuration data.

This example shows a simple case where a described channel refers to one main video container.

```xml
<channel version="0.0" xmlns="...">

  <description>
    <data rel="name">
       <hypertext>
         <source type="text/plain" lang="en">Example</source>
       </hypertext>
    </data>
    <data rel="name-long">
       <hypertext>
         <source type="text/plain lang="en">The Example Channel</source>
       </hypertext>
    </data>
    <data rel="description">
       <hypertext>
         <source type="text/plain" lang="en">This is a description of The Example Channel.</source>
       </hypertext>
    </data>
    <data rel="logo">
      <picture>
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
      </picture>
    </data>
    <data rel="background-image">
      <picture>
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
        <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
      </picture>
    </data>
  </description>

  <menu include-default-items="true">
    <item name="additional-item-1">
      <data rel="name">
         <hypertext>
           <source type="text/plain" lang="en">Additional menu item</source>
         </hypertext>
      </data>
      <data rel="icon">
        <picture>
          <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
          <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
          <source width="..." height="..." media="..." theme="..." type="image/png" src="..." />
        </picture>
      </data>
      <data rel="action">
        <script>
          <source type="text/javascript" src="..." />
        </script>
      </data>
    </item>
  </menu>

  <settings include-default-items="true">
    <setting name="custom-setting-1" kind="boolean">
      <data rel="name">
         <hypertext>
           <source type="text/plain" lang="en">A custom setting</source>
         </hypertext>
      </data>
      <data rel="description">
         <hypertext>
           <source type="text/plain" lang="en">This is a description of the custom setting.</source>
         </hypertext>
      </data>
    </setting>
  </settings>

  <containers default="main">
    <container name="main">
      <data rel="content">
        <video>
          <source width="..." height="..." media="..." type="video/mp4" src="..." />
          <source width="..." height="..." media="..." type="video/mp4" src="..." />
          <source width="..." height="..." media="..." type="video/mp4" src="..." />
        </video>
      </data>
    </container>
  </containers>

</channel>
```

I hope that the extensible example markup, above, clarifies upon the ideas towards advancing channels.

-- 
GitHub Notification of comment by AdamSobieski
Please view or discuss this issue at https://github.com/w3c/media-and-entertainment/issues/107#issuecomment-2083474470 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 29 April 2024 19:11:21 UTC