# c3-player

> Angular 6 Component Front Player for Audio streaming against Kurento

Latest version **2.0.0** (published 2019-01-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install c3-player
pnpm add c3-player
yarn add c3-player
bun add c3-player
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-01-25 |
| First published | 2019-01-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 24 |
| Unpacked size | 595.2 KB |
| Known vulnerabilities | 0 (+24 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yasser Kantour |
| Maintainers | yasserk7 |
| Keywords | c3player, player, WebRTC, streaming, kurento, browser, audio, angular |

## Links

- npm: https://www.npmjs.com/package/c3-player
- Repository: https://github.com/yasskant/c3-player
- Issues: https://github.com/yasskant/c3-player/issues
- npm.io page: https://npm.io/package/c3-player

## Dependencies (24)

- [rxjs](https://npm.io/package/rxjs.md) ^6.3.3
- [tslib](https://npm.io/package/tslib.md) ^1.9.0
- [jquery](https://npm.io/package/jquery.md) ^3.3.1
- [core-js](https://npm.io/package/core-js.md) ^2.5.4
- [zone.js](https://npm.io/package/zone.js.md) ^0.8.26
- [hammerjs](https://npm.io/package/hammerjs.md) ^2.0.8
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.2.1
- [ngx-spinner](https://npm.io/package/ngx-spinner.md) ^6.1.2
- [@angular/cdk](https://npm.io/package/@angular/cdk.md) ^7.2.0
- [font-awesome](https://npm.io/package/font-awesome.md) ^4.7.0
- [@angular/core](https://npm.io/package/@angular/core.md) ^6.0.3
- [@angular/http](https://npm.io/package/@angular/http.md) ^6.0.3
- [@angular/forms](https://npm.io/package/@angular/forms.md) ^6.0.3
- [@angular/common](https://npm.io/package/@angular/common.md) ^6.0.3
- [@angular/router](https://npm.io/package/@angular/router.md) ^6.0.3
- [ngx-modal-dialog](https://npm.io/package/ngx-modal-dialog.md) ^3.0.0
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ^6.0.3
- [@angular/elements](https://npm.io/package/@angular/elements.md) ^7.1.4
- [@angular/material](https://npm.io/package/@angular/material.md) ^7.2.0
- [@angular/animations](https://npm.io/package/@angular/animations.md) ^6.1.10
- [@types/kurento-utils](https://npm.io/package/@types/kurento-utils.md) ^6.7.0
- [kurento-utils-browser](https://npm.io/package/kurento-utils-browser.md) ^1.0.0
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ^6.0.3
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ^6.0.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-01-25
- 1.0.2 — 2019-01-24
- 1.0.1 — 2019-01-24
- 1.0.0 — 2019-01-23

## README

# C3Player

Audio Streaming Player Component

## About

This component is an Angular 2 (6.0+) WebRTC-based player component for audio streaming against [Kurento Streaming Server](http://www.kurento.org/).
It uses **WebRTC** and **WebSocket** to play audio not keeping any data in memory.

## Compatibility

Chrome (58+), Firefox (63+)

## How to install?

```
npm i c3-player
```

## How to use?

### Import the module

```javascript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { C3playerModule } from 'c3-player';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    C3playerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

### Use it in view

```html
<c3-player audio="xxxx" image="xxxx" wsUrl="xxxx" duration="xxxx"></c3-player>
```

Where:

| Input Name  |  Required           | Definition            | Default Value | Example                        |
| :---------- | :-----------------: | :-------------------: | :-----------: | -----------------------------: |
| audio       | :white_check_mark:  | URL of the audio      | None          | https://example.com/audio1.ogg |
| image       | :white_check_mark:  | URL of the wave image | None          | https://example.com/wave1.png  |
| wsUrl       | :white_check_mark:  | WS URL                | None          | https://kurento.example.com/ws |
| duration    | :white_check_mark:  | Duration in millis    | None          | 60000 (1min)                   |
| width       | :x:                 | Width of the player   | 100%          | 50%                            |
| margin      | :x:                 | Margin of the player  | auto          | 25%                            |
| img-dim     | :x:                 | Relation width/height | 5             | 3                              |


### Credits

[Yasser Kantour](https://github.com/yasskant)

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