amis/examples/components/Video.jsx

13 lines
442 B
JavaScript

export default {
"$schema": "https://houtai.baidu.com/v2/schemas/page.json#",
"title": "视频播放器",
"body": [
'<p class="text-danger">另外还支持直播流, flv 和 hls 格式</p>',
{
"type": "video",
"autoPlay": false,
"src": "https://media.w3.org/2010/05/sintel/trailer_hd.mp4",
"poster": "https://video-react.js.org/assets/poster.png"
}
]
}