New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kx-player

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kx-player

kx-player

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

kx-player

FAQs

Package last updated on 02 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts