From 91fdde6d38f0147f2febc0a41f87b4be3b18197f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?halwu=28=E5=90=B4=E6=B5=A9=E9=BA=9F=29?= Date: Mon, 29 May 2017 15:22:37 +0800 Subject: [PATCH] fix: extra HOST --- doc/live/flv.js | 3 ++- doc/live/hls.js | 3 ++- doc/live/index.js | 3 +++ doc/live/rtmp.js | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/live/flv.js b/doc/live/flv.js index f19da0e..11ba512 100644 --- a/doc/live/flv.js +++ b/doc/live/flv.js @@ -1,12 +1,13 @@ import React, { PureComponent } from 'react'; import { Reflv } from '../../src/index'; +import { HOST } from './index'; export class FLV extends PureComponent { render() { return ( - + ) } diff --git a/doc/live/index.js b/doc/live/index.js index 2d9d923..b0faf20 100644 --- a/doc/live/index.js +++ b/doc/live/index.js @@ -7,6 +7,9 @@ import { RTMP } from './rtmp'; import { FlvSupport } from '../support'; import '../index.scss'; +// export const HOST = 'wuhaolin.cn'; +export const HOST = 'localhost'; + const ROOT = (

常见直播方案对比

diff --git a/doc/live/rtmp.js b/doc/live/rtmp.js index 7833e46..23e1669 100644 --- a/doc/live/rtmp.js +++ b/doc/live/rtmp.js @@ -1,12 +1,13 @@ import React, { PureComponent } from 'react'; import swfobject from 'swfobject'; import player from './player.swf'; +import { HOST } from './index'; export class RTMP extends PureComponent { componentDidMount() { const soFlashVars = { - src: 'rtmp://localhost/live/movie', + src: `rtmp://${HOST}:1935/live/movie`, streamType: 'live', autoPlay: "true", controlBarAutoHide: "true",