import React from 'react'; import ReactPlayer from 'react-player'//引入 const LiveBroadcast=()=>{ return<ReactPlayer className='react-player' url='....flv'//地址 width='100%'//宽度 height='100%'//高度 playing={true}//是否自动播放 controls//控制 /> } export default LiveBroadcast
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|