@pluginarch/create-parch
Version:
this is way to create a ui project
15 lines (14 loc) • 467 B
JavaScript
var mediaViewAttr = {
type: 1,
tag: 'MediaView',
attrMap: {
id: 'mediaview1',
autoPlay: 'true',
cycleCount: '-1',
borderColor: 'green',
source: '../public/video/test.mp4',
preserveRatio: '2', //“Stretch”:0(默认)拉伸自适应;(默认的)“PreserveAspectFit”: 1 按比例缩放,不裁剪 “PreserveAspectCrop”:2均匀缩放,必要时裁剪
w:'600',
h:'800'
}
}