@blendvision/render
v0.0.1
Published
Provides an easy way to play the ABR streaming.
Downloads
73
Readme
BlendVision Player SDK
Provides an easy way to play the ABR streaming.
How to Install?
There are 2 methods to install BlendVision Render SDK as described below. You can install BlendVision Render SDK through npm:
npm install @blendvision/render
Alternatively, you can refer to an up‐to‐date version on our CDN:
<script src="https://unpkg.com/@blendvision/player"></script>
How to Create a Render?
Create an instance of this render.
import { createPlayer } from "@blendvision/player"";
import { createPSE } from "@blendvision/render";
// Configurations for the player.
const playerConfig = {
title: 'Title',
source: '...',
};
// Create the player.
const player = createPlayer(video, playerConfig);
// Configurations for the render.
const renderConfig = {
bvPlayer: player,
targetCanvas: YOUR RENDER CANVAS,
videoWidth: YOUR VIDEO WIDTH,
videoHeight: YOUR VIDEO HEIGHT,
enabled: true,
};
// Create the render.
render = createPSE(renderConfig);