0.2.0 • Published 5 months ago

@kinescope/player-iframe-api-loader v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Kinescope Player Iframe API Loader

npm package License

A simple loader of JavaScript files (Iframe API) and TypeScript types who uses Kinescope Player Iframe API.

Installation

npm install --save @kinescope/player-iframe-api-loader
# or
yarn add @kinescope/player-iframe-api-loader

Features

The loader replaces standard way of loading and usage Iframe API such as onKinescopeIframeAPIReady callback.

Also the library contains TypeScript type definitions. It is possible to use only TypeScript types without loader.

Example:

import * as iframeApiLoader from '@kinescope/player-iframe-api-loader';

// Load the latest stable version.
const factory = await iframeApiLoader.load();
// Create the player. Look at the docs, the link below.
const player = await factory.create(...);

Using only types:

import '@kinescope/player-iframe-api-loader/types';

let player: Kinescope.IframePlayer.Player | undefined;

const factory = window.Kinescope?.IframePlayer;
if (factory) {
  player = await factory.create(...);
}

Player embedding docs

0.1.2

7 months ago

0.2.0

5 months ago

0.1.1

7 months ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.18

11 months ago

0.0.19

8 months ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago