open-index/open-npm huggingface dataset:
npm package: @gcorevideo/player
Description: Gcore JavaScript video player
Author: Gcore
Latest version: 2.29.0

# Gcore video player

$

## Installation

```bash
npm install @gcorevideo/player
```

Or use a script on the CDN directly in your HTML:

```html
<script src="https://player.gvideo.co/v2/assets/2.26.1/index.js"></script>
```

## Usage

See the complete example app on Vercel: <https://github.com/dmitritz/gcore-videoplayer-js-nuxt>

### Plain HTML example

```html
<html>
<head>
    <link rel="stylesheet" href="https://player.gvideo.co/v2/assets/2.26.1/index.css" />
    ...
    <style>
      #container {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
        background-color:black;
        color:#fff
      }
      #wrapper {
        max-width: 400px;
        margin: 1rem auto;
      }
    </style>
</head>
<body>
<div id="wrapper">
  <div id="container"></div>
</div>
<script type="module">
  import {
    Player,
    MediaControl,
    SourceController,
    Spinner,
  } from 'https://player.gvideo.co/v2/assets/2.26.1/index.js'

  Player.registerPlugin(MediaControl)
  Player.registerPlugin(SourceController)
  Player.registerPlugin(Spinner)

  const player = new Player({
    autoPlay: true,
    mute: true,
    sources: [{
      source: 'https://demo-public.gvideo.io/cmaf/2675_21960/index.mpd,
      type: 'application/dash+xml',
    }, {
      source: 'https://demo-public.gvideo.io/cmaf/2675_21960/master.m3u8',
      type: 'application/x-mpegURL',
    }],
    spinner: {
      showOnError: true,
      showOnStart: true,
    }
  })
  document.addEventListener('DOMContentLoaded', () => {
    player.attachTo(document.getElementById('container'))
  })
</script>
</body>
</html>
```

[Example codepen](https://codepen.io/dmitritz/pen/OPLdEab)

## Documentation

- [API reference](./docs/api/index.md)

## Development

### Log level

Detailed logs can be useful in local development while debugging or watching tests output.
Log level of the player core and components can be controlled by configuring a LogTracer:

```ts
import { LogTracer, Logger, setTracer } from '@gcorevideo/utils'
// ...
Logger.enable('*') // log everything; you can use glob-like patterns, such as 'gplayer', 'plugins.*' or 'playback.*'
setTracer(new LogTracer('AudioTracks.test'))
```

When debugging an app that use the player as a dependency,

```ts
import { LogTracer, Logger, setTracer } from '@gcorevideo/player'
```
npm package: @gcorevideo/player-plugins
Description: Gcore JavaScript video player plugins
Author: Gcore
Latest version: 0.11.4

# Gcore video player plugins

This package contains UI and playback control plugins for the Gcore video player.
The plugins follow the [Clappr](https://github.com/clappr/clappr) plugins architecture.

## Installation

```bash
npm install @gcorevideo/player-plugins
```

## Usage

See the [player README](../player/README.md) for usage examples.

See [example plugin here](https://github.com/dmitritz/gcore-videoplayer-js-nuxt/blob/493032e87d77b0cd8e0495839dd9fb8bdc082f53/components/plugins/ExampleUI.ts)

## API documentation

[See here](./docs/api/index.md)
npm package: @gcorevideo/rtckit
Description: A WebRTC client for Gcore Streaming Platform
Latest version: 0.89.20

# Gcore WebRTC SDK

Gcore real-time streaming platform is a cloud [SFU](https://bloggeek.me/webrtcglossary/sfu/) for WebRTC.

## API
[Start here](./docs/api/index.md)

## Demo apps
- [WebRTC ingestion demo Vue app](../../apps/ingest-demo)
- [WHIP/WHEP demo Vue app](../../apps/webrtc-demo)
- [Example of using RtcKit for Node.js](../../apps/rtckit-node-demo/)
- [Example vanilla JS WebRTC ingestion app](../../embedded-ingest-demo)
- [Full-stack WebRTC ingestion demo Nuxt app](../../apps/ingest-demo-nuxt)

## Development
[Maintenance and contribution](./docs/devel/index.md)

## Architecture
npm package: @gcorevideo/rtckit-node
Description: Node.js SDK for the Gcore WebRTC
Author: Dmitrii Tkach
Latest version: 0.14.2

# Gcore server-side WebRTC SDK

## Usage

### 1. Install

```
npm i @gcorevideo/rtckit-node
```

### 2. Get your API Key

https://api.gcore.com/docs/iam#section/Authentication


### 3. Use it

```
const rtckit = require("@gcorevideo/rtckit-node");

const apiKey = new rtckit.ApiKey("4887$deadbeef...");
const api = new rtckit.GcoreApi(apiKey);
const stream = await api.webrtc.createStream("My WebRTC broadcast");
console.log(stream);
...
await api.webrtc.deleteStream(stream.id);
```