Video 视频
API#
视频播放组件。
Video#
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
autoPlay | 设置视频自动播放 | boolean | false |
src | 视频地址 | string | 无 |
视频播放组件。
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
autoPlay | 设置视频自动播放 | boolean | false |
src | 视频地址 | string | 无 |
/** @jsx createElement */
import {createElement, Component} from 'weex-rx';
import { View, Text, Video } from 'nuke-components';
import {mount} from 'nuke-mounter';
let App = class NukeDemoIndex extends Component {
constructor() {
super();
}
render() {
return (
<View style={{backgroundColor:'grey',height:'200rem',justifyContent:'center',alignItems:'center'}}>
<Video autoPlay src="http://cloud.video.taobao.com/play/u/2921026198/p/1/e/6/t/1/46233167.mp4" />
</View>
)
}
}
mount(<App/>, mountNode);