open-index/open-npm huggingface dataset:
npm package: @sitr.io/embed-sdk
Description: Security-first video embed SDK with DRM support for HLS and DASH streaming.
Latest version: 0.1.5

# @sitr.io/embed-sdk

Security-first video embed SDK with DRM support for HLS and DASH streaming.

## Installation

```bash
npm install @sitr.io/embed-sdk
```

## Usage

### Script tag (UMD)

```html
<div id="vg-player"></div>
<script src="https://unpkg.com/@sitr.io/embed-sdk/dist/vg.js"></script>
<script>
  VideoGuard.init({
    apiBaseUrl: "https://api.example.com",
  });

  VideoGuard.mount({
    el: "#vg-player",
    videoId: "video-123",
    userId: "user-456",
  });
</script>
```

### ES modules

```javascript
import VideoGuard from "@sitr.io/embed-sdk";

VideoGuard.init({
  apiBaseUrl: "https://api.example.com",
});

const player = await VideoGuard.mount({
  el: "#vg-player",
  videoId: "video-123",
  userId: "user-456",
});
```

### Mount on DOM ready

```javascript
VideoGuard.init({ apiBaseUrl: "https://api.example.com" });
await VideoGuard.mountOnStart({ el: "#vg-player", videoId: "video-123", userId: "user-456" });
```

## API

- **`VideoGuard.init(config)`** – Initialize the SDK with `apiBaseUrl` and optional `tenantToken`, `branding`, etc.
- **`VideoGuard.mount(options)`** – Mount the player into a target element. Returns a Promise resolving to the player DOM element.
- **`VideoGuard.mountOnStart(options)`** – Same as `mount`, but waits for `DOMContentLoaded` before mounting.

## Required backend endpoints

Your API must implement:

- `GET {apiBaseUrl}/playback/videos/{id}` – Video metadata and manifest paths
- `GET {apiBaseUrl}/playback/config` – DRM license URLs
- `GET {apiBaseUrl}/playback/videos/{id}/token` – Playback token

## Notes

- The SDK stores a persistent `vg_device_id` in `localStorage`.
- Supports HLS, DASH, and MP4 fallback with optional Widevine, PlayReady, and FairPlay DRM.
npm package: @sitrakalaura/fs-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
Latest version: 0.0.1

# FsLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.

## Code scaffolding

Run `ng generate component component-name --project fs-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project fs-lib`.
> Note: Don't forget to add `--project fs-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build fs-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build fs-lib`, go to the dist folder `cd dist/fs-lib` and run `npm publish`.

## Running unit tests

Run `ng test fs-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.