kx-player
v0.0.2
Published
kx-player
Downloads
1
Readme
irplayer
Install
# or yarn
$ npm install
$ npm run build --watch
$ npm run start
Usage
Configure in .umirc.js
,
export default {
plugins: [
['irplayer'],
],
}
Options
TODO
LICENSE
MIT
用法
const player = new MonibucaRtcPlay(url, [options]);
参数 url
是一个 http 开头的地址 (http://0.0.0.0:8080/webrtc/play?streamPath=live/rtmp);
参数 options
支持下面的配置项:
video
用于播放视频的 HTML Video 元素.
import MonibucaRtcPlay from 'kx-player'
const webrtcPlayer = document.getElementById(`remoteVideo`) as HTMLVideoElement;
const VideoPlay = new MonibucaRtcPlay('http://0.0.0.0:8080/webrtc/play?streamPath=live/rtmp', webrtcPlayer)
VideoPlay.play();
authors: 刘康贤