mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
132 lines
5.0 KiB
JSON
132 lines
5.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/video.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"dependencies": {},
|
|
"patternProperties": {
|
|
"^(\\$ref|className|aspectRatio|rates|playerClassName|framesClassName|src|poster|muted|isLive|jumpFrame|videoType|autoPlay|splitPoster|minPosterDimension|minVideoDuration|frames|columnsCount|visible|visibleOn|disabled|disabledOn)$": {}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"format": "uri",
|
|
"type": "string",
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|
},
|
|
"type": {
|
|
"const": "video",
|
|
"description": "指定为视频类型",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
}
|
|
],
|
|
"definitions": {
|
|
"common": {
|
|
"description": "AMis Video 渲染器,用来生成视频播放器",
|
|
"properties": {
|
|
"$ref": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|
"description": "引用页面中的定义"
|
|
},
|
|
"autoPlay": {
|
|
"description": "是否自动播放",
|
|
"type": "boolean"
|
|
},
|
|
"className": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
"description": "配置容器 className"
|
|
},
|
|
"columnsCount": {
|
|
"default": 8,
|
|
"description": "如果显示切帧,通过此配置项可以控制每行显示多少帧"
|
|
},
|
|
"frames": {
|
|
"description": "设置后,可以显示切帧"
|
|
},
|
|
"framesClassName": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
"description": "配置帧列表容器className"
|
|
},
|
|
"isLive": {
|
|
"description": "如果是实时的,请标记一下",
|
|
"type": "boolean"
|
|
},
|
|
"jumpFrame": {
|
|
"default": true,
|
|
"description": "点击帧画面时是否跳转视频对应的点",
|
|
"type": "boolean"
|
|
},
|
|
"minPosterDimension": {
|
|
"description": "设置最小尺寸提示,低于设置的值,会高亮显示",
|
|
"properties": {
|
|
"height": {
|
|
"description": "高度",
|
|
"type": "number"
|
|
},
|
|
"width": {
|
|
"description": "宽度",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"minVideoDuration": {
|
|
"description": "视频最低时长提示",
|
|
"type": "number"
|
|
},
|
|
"muted": {
|
|
"description": "是否初始静音",
|
|
"type": "boolean"
|
|
},
|
|
"playerClassName": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
"description": "配置播放器 className"
|
|
},
|
|
"poster": {
|
|
"description": "视频封面地址",
|
|
"type": "string"
|
|
},
|
|
"splitPoster": {
|
|
"description": "是否将视频和封面分开显示",
|
|
"type": "boolean"
|
|
},
|
|
"src": {
|
|
"description": "视频播放地址",
|
|
"type": "string"
|
|
},
|
|
"videoType": {
|
|
"description": "视频类型如: video/x-flv",
|
|
"type": "string"
|
|
},
|
|
"aspectRatio": {
|
|
"description": "视频比率",
|
|
"enum": ["auto", "", "4:3", "16:9"]
|
|
},
|
|
"rates": {
|
|
"description": "视频速率",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "video"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "AMis Video 渲染器,用来生成视频播放器",
|
|
"id": "https://houtai.baidu.com/v2/schemas/video.json#",
|
|
"type": "object"
|
|
} |