dihum-component-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

dihum-component-react

NPM version NPM downloads

Usage

import 'dihum-component-react/dist/css/dihum-component-react.min.css';
import { Dihum } from 'dihum-component-react';
/**
 * apiUrl
 * 推流服务地址, http://111.111.111.11:1111
 * 可添加后缀做代理转发, http://111.111.111.11:1111/api
 */

/**
 * wsUrl
 * 推流socket服务地址, ws://111.111.111.11:1111
 */

/**
 * scale
 * 大屏自适应系数,默认为1,影响拖拽速度
 */

/**
 * downWAV
 * 录音是否下载音频文件,默认不下载
 */

/**
 * bgImage
 * 背景图片地址
 */

/**
 * bgOpacity
 * 背景图片透明度
 */
export default () => (
  <Dihum
    apiUrl="http://111.111.111.11:1111"
    wsUrl="ws://111.111.111.11:1111"
    scale={1}
    downWAV={true}
  />
);

Options

TODO

Development

# install dependencies
$ yarn install

# develop library by docs demo
$ yarn start

# build library source code
$ yarn run build

# build library source code in watch mode
$ yarn run build:watch

# build docs
$ yarn run docs:build

# check your project for potential problems
$ yarn run doctor

LICENSE

MIT

Dependents (0)

Package Sidebar

Install

npm i dihum-component-react

Weekly Downloads

1

Version

0.0.14

License

MIT

Unpacked Size

15.2 MB

Total Files

58

Last publish

Collaborators

  • kukuxuan-cola