From 321f037e21dc46bfd01a77d9b7fb78f393ff4745 Mon Sep 17 00:00:00 2001 From: Alecks Gates Date: Sun, 18 Apr 2021 22:22:39 -0500 Subject: [PATCH] Add optional "title" to alternateEnclosure --- README.md | 9 +++++---- .../alternateEnclosure/alternateEnclosure.md | 11 ++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4fb908e..420ed14 100644 --- a/README.md +++ b/README.md @@ -278,6 +278,7 @@ Example: bitrate="[(float)]" height="[(int)]" lang="[(string)]" + title="[(string)]" rel="[(string)]" codecs="[(string)]" default="[(boolean)]" @@ -303,22 +304,22 @@ Example: ``` - + - + - + - + diff --git a/proposal-docs/alternateEnclosure/alternateEnclosure.md b/proposal-docs/alternateEnclosure/alternateEnclosure.md index 0657764..e3fa8d0 100644 --- a/proposal-docs/alternateEnclosure/alternateEnclosure.md +++ b/proposal-docs/alternateEnclosure/alternateEnclosure.md @@ -20,7 +20,7 @@ Lastly, I propose optional information to verify integrity of downloaded media v ## Specification -- **\ ... ** +- **\ ... ** Item (optional | multiple) This element defines a media file. One or more `` tags must be contained within this element to list available methods to obtain the file. This is meant to provide different versions of a media file -- such as low or high bitrate, alternate formats (different codecs or video), alternate URI schemes (IPFS or live streaming), or alternate download types not indicated by the URI and type (like torrents). @@ -36,6 +36,7 @@ Lastly, I propose optional information to verify integrity of downloaded media v - `bitrate` (optional) Encoding bitrate of media asset. - `height` (optional) Height of the media asset for video formats - `lang` (optional) An [IETF language tag (BCP 47)](https://en.wikipedia.org/wiki/BCP_47) code identifying the language of this media. + - `title` (optional) A human-readable string identifying the name of the media asset. Should be limited to 32 characters for UX. - `rel` (optional) Provides a method of offering and/or grouping together different media elements. If not set, or set to "default", the media will be grouped with the enclosure and assumed to be an alternative to the enclosure's encoding/transport. This attribute can and should be the same for items with the same content encoded by different means. Should be limited to 32 characters for UX. - `codecs` (optional) A [RFC 6381](https://tools.ietf.org/html/rfc6381) string specifying the codecs available in this media. - `default` (optional) Boolean specifying whether or not the given media is the same as the file from the _enclosure_ element and should be the preferred media element. The primary reason to set this is to offer alternative transports for the enclosure. If not set, this should be assumed to be _false_. @@ -67,22 +68,22 @@ Example of content served via audio in mp3, [high-bitrate Opus](https://wiki.xip ```xml - + - + - + - +