kx-player
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

irplayer

NPM version NPM downloads

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: 刘康贤

Readme

Keywords

Package Sidebar

Install

npm i kx-player

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

6.5 kB

Total Files

4

Last publish

Collaborators

  • lkxian888