readme.md: add codecs to schema
This commit is contained in:
parent
36735b72b3
commit
5fee70c889
@ -53,6 +53,11 @@ $defs:
|
|||||||
GWRadioURI:
|
GWRadioURI:
|
||||||
type: uri
|
type: uri
|
||||||
description: 'A URI that points to the source file. See `GWMediaPlayer.fromURIToAbsolute()` for how to convert to a URL'
|
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:
|
properties:
|
||||||
version: { type: integer }
|
version: { type: integer }
|
||||||
songs:
|
songs:
|
||||||
@ -123,6 +128,7 @@ properties:
|
|||||||
- required: [ type, url ]
|
- required: [ type, url ]
|
||||||
properties:
|
properties:
|
||||||
type: { type: string, format: mimetype }
|
type: { type: string, format: mimetype }
|
||||||
|
codecs: { "$ref": "#/$defs/MediaCodecs" }
|
||||||
uri: { "$ref": "#/$defs/GWRadioURI" }
|
uri: { "$ref": "#/$defs/GWRadioURI" }
|
||||||
previews:
|
previews:
|
||||||
description: >-
|
description: >-
|
||||||
@ -134,8 +140,9 @@ properties:
|
|||||||
display_type:
|
display_type:
|
||||||
description: 'Used to determine how the media should be displayed. See GWMediaPlayer.EDisplayType'
|
description: 'Used to determine how the media should be displayed. See GWMediaPlayer.EDisplayType'
|
||||||
type: string
|
type: string
|
||||||
uri: { "$ref": "#/$defs/GWRadioURI" }
|
|
||||||
type: { type: string, format: mimetype }
|
type: { type: string, format: mimetype }
|
||||||
|
codecs: { "$ref": "#/$defs/MediaCodecs" }
|
||||||
|
uri: { "$ref": "#/$defs/GWRadioURI" }
|
||||||
size: { type: string }
|
size: { type: string }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user