From 5fee70c889b2a9ca59772c0b4e3523e585df99e3 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 16 Dec 2022 02:13:50 +0000 Subject: [PATCH] readme.md: add codecs to schema --- readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5185eff..fd5456f 100644 --- a/readme.md +++ b/readme.md @@ -53,6 +53,11 @@ $defs: GWRadioURI: type: uri description: 'A URI that points to the source file. See `GWMediaPlayer.fromURIToAbsolute()` for how to convert to a URL' + MediaCodecs: + type: array + description: 'An array of codecs contained within the source file. Items should follow RFC6381' + items: + - type: string properties: version: { type: integer } songs: @@ -123,6 +128,7 @@ properties: - required: [ type, url ] properties: type: { type: string, format: mimetype } + codecs: { "$ref": "#/$defs/MediaCodecs" } uri: { "$ref": "#/$defs/GWRadioURI" } previews: description: >- @@ -134,8 +140,9 @@ properties: display_type: description: 'Used to determine how the media should be displayed. See GWMediaPlayer.EDisplayType' type: string - uri: { "$ref": "#/$defs/GWRadioURI" } type: { type: string, format: mimetype } + codecs: { "$ref": "#/$defs/MediaCodecs" } + uri: { "$ref": "#/$defs/GWRadioURI" } size: { type: string } ```