# jade-cicada-web

> jade_cicada_web sdk

Latest version **1.0.0** (published 2021-10-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install jade-cicada-web
pnpm add jade-cicada-web
yarn add jade-cicada-web
bun add jade-cicada-web
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-10-11 |
| First published | 2021-10-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 499.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | YajunNie |
| Maintainers | nieyajun |
| Keywords | jade, cicada, jade_cicada, jade-cicada |

## Links

- npm: https://www.npmjs.com/package/jade-cicada-web
- npm.io page: https://npm.io/package/jade-cicada-web

## Dependencies (1)

- [urtc-sdk](https://npm.io/package/urtc-sdk.md) ^1.6.28

## Recent versions

- 1.0.0 (latest) — 2021-10-11

## README

####  使用示例:
##### npm:

* 第一步：安装
```
	npm install jade-cicada-web --save
```
######
* 第二🙅‍♂️：使用第二步获取的平台参数访问设备音视频
```
	# 引入
	import JadeCicadaWeb from 'jade-cicada-web'

	# 创建实例
	# @params userId: 拉取音视频的临时身份证明，不填时随机生成
	const instance = JadeCicadaWeb.create({
		userId: 'test1'
	})

	# 错误监听
	instance.on('error', function(err) {
		con
		sole.log('出错了', err)
	})
	# 调用开启音视频接口，获取平台参数 RTCData， 具体方法请参考后台API
	let RTCData
	openRTCServe(params).then((res) => {
		if (res.data.code === 200) {
			RTCData = res.data.data
		}
	})

	# 播放音视频,
	# @params RTCData: 上一步获取到的数据; container: 播放音视频的容器，必须是div标签
	instance.playVideo(RTCData, container)

```

---
_Source: https://npm.io/package/jade-cicada-web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
