# ckc

> Civilized Kurento Client

Latest version **0.4.0** (published 2017-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install ckc
pnpm add ckc
yarn add ckc
bun add ckc
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2017-11-02 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Xaqron |
| Maintainers | xaq |
| Keywords | Kurento, kurento-client, media-server, WebRTC |

## Links

- npm: https://www.npmjs.com/package/ckc
- Repository: https://github.com/Xaqron/ckc
- Homepage: https://github.com/Xaqron/ckc#readme
- Issues: https://github.com/Xaqron/ckc/issues
- npm.io page: https://npm.io/package/ckc

## Dependencies (1)

- [kurento-client](https://npm.io/package/kurento-client.md) ^6.6.0

## Recent versions

- 0.4.0 (latest) — 2017-11-02
- 0.3.0 — 2017-11-02
- 0.2.0 — 2017-11-02
- 0.1.0 — 2017-10-30

## README

# CKC #

Civilized Kurento Client provides wrapper classes for kurento-client functionality.

## Usage ##

```bash
npm install --save ckc
```

```js
const CKC = require('ckc')
const WebRtcEndpoint = CKC.WebRtcEndpoint
const KurentoClientFactory = CKC.KurentoClientFactory

async function test (kurentoServerUrl) {
  const kurentoClient = await KurentoClientFactory.build(kurentoServerUrl)
  let mediaPipeLine = await kurentoClient.createMediaPipeline()
  let webRtcEndpoint = await WebRtcEndpoint.build(mediaPipeLine)
  // Add client ice candidates in a loop
  webRtcEndpoint.addIceCandidate(iceCandidate)
  // here you can get generated ice candidates
  webRtcEndpoint.onIceCandidate(async function (iceCandidate) {
    console.log(`Received ice candidate: ${iceCandidate}`)
    // send generated ice candidates to client
  })
  // Using client sdp offer generate answer and send to client
  let sdpAnswer = await webRtcEndpoint.processOffer(sdpOffer)
  await webRtcEndpoint.gatherCandidates()
}

test('ws://localhost:8888/kurento')
```

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