amis2/examples/components/Video.jsx

24 lines
631 B
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
2020-07-29 16:35:57 +08:00
$schema: 'https://houtai.baidu.com/v2/schemas/page.json#',
title: '视频播放器',
2019-11-07 10:41:14 +08:00
body: [
'<p class="text-danger">另外还支持直播流, flv 和 hls 格式</p>',
{
2020-07-29 16:35:57 +08:00
type: 'video',
2019-11-07 10:41:14 +08:00
autoPlay: false,
rates: [1.0, 1.5, 2.0],
2020-07-29 16:35:57 +08:00
jumpFrame: true,
jumpBufferDuration: 5,
frames: {
'00:10': '',
'00:20': '',
'00:30': ''
},
2019-12-24 11:25:55 +08:00
src:
2020-07-29 16:35:57 +08:00
'https://amis.bj.bcebos.com/amis/2019-12/1577157317579/trailer_hd.mp4',
2019-12-24 11:25:55 +08:00
poster:
2020-07-29 16:35:57 +08:00
'https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png'
2019-11-07 10:41:14 +08:00
}
]
};