{ "$schema": "http://json-schema.org/draft-04/schema#", "allOf": [ { "$ref": "https://houtai.baidu.com/v2/schemas/audio.json#/definitions/common" }, { "additionalProperties": false, "dependencies": {}, "patternProperties": { "^(\\$ref|type|className|name|inline|src|loop|autoPlay|rates|controls)$": {} }, "properties": { "$schema": { "format": "uri", "type": "string", "description": "绑定 JSON 格式说明,可忽略!" }, "type": { "const": "audio", "description": "指定为音频类型", "type": "string" } }, "required": ["type"] } ], "definitions": { "common": { "description": "amis Audio 渲染器,用来生成音频播放器", "properties": { "$ref": { "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "description": "引用页面中的定义" }, "className": { "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className", "description": "配置容器 className" }, "inline": { "type": "boolean", "description": "是否是内联模式" }, "src": { "description": "视频播放地址, 支持 $ 取变量。", "type": "string" }, "loop": { "type": "boolean", "description": "是否循环播放" }, "autoPlay": { "type": "boolean", "description": "是否自动播放" }, "rates": { "type": "array", "description": "配置可选播放倍速", "items": { "type": "number" } }, "controls": { "type": "array", "description": "可以配置控制器", "items": { "type": "string", "enum": ["rates", "play", "time", "process", "volume"] } } } }, "test": { "properties": { "type": { "const": "audio" } } } }, "description": "amis Audio 渲染器,用来生成视频播放器", "id": "https://houtai.baidu.com/v2/schemas/audio.json#", "type": "object" }