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

c3-player

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c3-player

Angular 6 Component Front Player for Audio streaming against Kurento

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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. 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

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

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

Where:

Input NameRequiredDefinitionDefault ValueExample
audio:white_check_mark:URL of the audioNonehttps://example.com/audio1.ogg
image:white_check_mark:URL of the wave imageNonehttps://example.com/wave1.png
wsUrl:white_check_mark:WS URLNonehttps://kurento.example.com/ws
duration:white_check_mark:Duration in millisNone60000 (1min)
width:x:Width of the player100%50%
margin:x:Margin of the playerauto25%
img-dim:x:Relation width/height53

Credits

Yasser Kantour

Keywords

c3player

FAQs

Package last updated on 25 Jan 2019

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