Unified Video Framework

1.4.570 · active · verified Sun Apr 19

Unified Video Framework, currently at version 1.4.570, is a cross-platform video player SDK developed by Flicknexs. It aims to provide a single, unified API for building OTT, FAST, VOD, and Live Streaming applications across various platforms, thereby eliminating the need to maintain separate players for different environments. While it supports Web (all modern browsers), its native implementations for iOS, Android (including React Native), Smart TVs (Samsung Tizen, LG webOS), and streaming devices (Roku, Android TV, Apple TV) are noted as "On Progress." This indicates active development and ongoing feature completion for these platforms. The framework differentiates itself by targeting comprehensive streaming use cases and offering a centralized solution for video platforms, supported by Flicknexs's broader white-label OTT infrastructure.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize the `UnifiedVideoPlayer` in a web environment, attach it to a DOM element, configure a video source, and listen for basic playback events.

import { UnifiedVideoPlayer } from 'unified-video-framework';

document.addEventListener('DOMContentLoaded', () => {
  const playerElement = document.getElementById('unified-player');
  if (!playerElement) {
    console.error('Player element #unified-player not found in DOM.');
    return;
  }

  // Example configuration, adjust as per actual API documentation
  const config = {
    container: playerElement,
    source: {
      url: 'https://cdn.example.com/your-video.mp4',
      type: 'video/mp4' // Or 'application/x-mpegURL' for HLS, 'application/dash+xml' for DASH
    },
    autoplay: true,
    controls: true,
    // An API key might be required for certain features or backend services
    // apiKey: process.env.UNIFIED_PLAYER_API_KEY ?? '' 
  };

  try {
    const player = new UnifiedVideoPlayer(config);
    player.on('play', () => console.log('Video started playing.'));
    player.on('ended', () => console.log('Video ended.'));
    console.log('Unified Video Player initialized successfully.');
  } catch (error) {
    console.error('Failed to initialize Unified Video Player:', error);
  }
});

view raw JSON →