🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@kinescope/player-iframe-api-loader

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kinescope/player-iframe-api-loader

Kinescope Player Iframe API loader and TypeScript type definitions

0.2.0
latest
Source
npm
Version published
Weekly downloads
168
-39.35%
Maintainers
4
Weekly downloads
 
Created
Source

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

Keywords

player

FAQs

Package last updated on 22 May 2025

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