Skip to content

Commit

Permalink
fix: add 使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
halwu(吴浩麟) committed May 30, 2017
1 parent 400b2b8 commit f04ad36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/live/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import '../index.scss';

const LS_KEY = 'reflv-live-state';
export const HOST = 'wuhaolin.cn';

// export const HOST = 'localhost';

class ROOT extends PureComponent {
Expand Down Expand Up @@ -72,6 +73,13 @@ class ROOT extends PureComponent {
{hls ? <HLS/> : null}
</ReDemo>

<div>
<h3>使用说明</h3>
<p>推流后才可以看到视频</p>
<p>使用<code>ffmpeg -re -i demo.flv -c copy -f flv rtmp://wuhaolin.cn/live/movie</code>推流播放demo.flv</p>
<p>使用<code>ffmpeg -f avfoundation -i "0" -vcodec h264 -acodec aac -f flv rtmp://wuhaolin.cn/live/movie</code>推流播放你电脑的摄像头</p>
</div>

<FlvSupport/>
</div>
)
Expand Down

0 comments on commit f04ad36

Please sign in to comment.