瀏覽代碼

update README.md

shaojing 6 年之前
父節點
當前提交
1906a839bf
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20
    0
      README.md

+ 20
- 0
README.md 查看文件

@@ -20,4 +20,24 @@ Build dist.
20 20
 
21 21
 ```bash
22 22
 $ npm run build
23
+```
24
+
25
+
26
+## Install package.
27
+
28
+```bash
29
+$ npm install https://git.links123.net/links123.com/video_player.git --save
30
+```
31
+
32
+## Usage
33
+
34
+```javascript
35
+import { DefaultPlayer as Video } from 'react-html5video';
36
+import 'react-html5video/dist/styles.css';
37
+
38
+const Player = () => (
39
+  <Video autoPlay>
40
+    <source src="demo.mp4" type="video/mp4" />
41
+  </Video>
42
+)
23 43
 ```