forked from alibaba/rax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VideoDemo.js
49 lines (45 loc) · 860 Bytes
/
VideoDemo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import {createElement, Component} from 'rax';
import {
View,
Text,
Image,
Link,
TextInput,
Button,
Switch,
Video,
ScrollView,
TouchableWithoutFeedback} from 'rax-components';
class VideoDemo extends Component {
render() {
return (
<View style={styles.container}>
<Video
style={{
flex: 1,
height: '350rem'
}}
autoPlay={false}
src="http://cloud.video.taobao.com/play/u/2780279213/p/1/e/6/t/1/d/ld/36255062.mp4"
/>
</View>
);
}
}
let styles = {
container: {
padding: 20,
borderStyle: 'solid',
borderColor: '#dddddd',
borderWidth: 1,
marginLeft: 20,
marginRight: 20,
marginBottom: 10,
},
box: {
backgroundColor: '#527FE4',
borderColor: '#000033',
borderWidth: 1,
},
};
export default VideoDemo;