amis2/examples/components/Video.jsx

21 lines
476 B
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
2020-07-29 16:35:57 +08:00
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': ''
},
src: __uri('../static/video/trailer_hd.mp4'),
poster: __uri('../static/photo/da6376bf988c.jpg')
2019-11-07 10:41:14 +08:00
}
]
};