New:Socket for Asana Is Now Available.Learn more
Get Started

lorapok-player

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lorapok-player

High-performance React media engine with Organic Intelligence aesthetics. Supports HLS, DASH, and Hardware Acceleration.

latest
Source
npmnpm
Version
1.4.0
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

LORAPOK PLAYER (Core Library)

SUPERCOMPUTING MEDIA ENGINE

NPM Version Bundle Size NPM Downloads License

Lorapok Player is a high-performance React media engine engineered for ultra-low latency playback and biological aesthetics. It seamlessly handles MP4, HLS, and DASH streams with 4K/8K hardware acceleration.

🧬 FEATURES

  • Adaptive Multi-Platform: Native support for HLS (.m3u8), DASH (.mpd), and standard Mp4.
  • Organic UI Engine: Biological aesthetics with real-time reactive ambient lighting.
  • Hardware Acceleration: GPU-optimized rasterization for buttery smooth 8K playback.
  • Neural Probing: Accurate duration and metadata discovery using supercomputing pipelines.
  • Theme Injection: Runtime theme switching with zero-latency visual transition.

📦 INSTALLATION

npm install lorapok-player

🚀 QUICK START

import { LorapokPlayer } from 'lorapok-player';
import 'lorapok-player/style.css';

const App = () => (
  <div className="player-wrapper">
    <LorapokPlayer 
      src="https://example.com/stream.m3u8" 
      autoPlay={false}
      className="lorapok-themed"
    />
  </div>
);

🧬 API REFERENCE

Props

PropTypeDefaultDescription
srcstringRequiredSource URL (supports .mp4, .m3u8, .mpd).
autoPlaybooleanfalseEnable automatic playback.
loopbooleanfalseRestart media when finished.
mutedbooleanfalseStart with volume at 0.
posterstringundefinedImage displayed before video starts.
classNamestringundefinedCustom CSS classes for the container.
initialPositionnumber0Start playback from a specific timestamp (seconds).
showControlsbooleantrueToggle the high-fidelity control deck.

Event Callbacks

CallbackSignatureDescription
onPlay() => voidFired when playback starts.
onPause() => voidFired when playback is paused.
onEnded() => voidFired when the media reaches the end.
onTimeUpdate(time: number) => voidFired periodically during playback.
onError(error: any) => voidFired when a loading or playback error occurs.

🎮 PROGRAMMATIC CONTROL (Imperative API)

The LorapokPlayer component exposes a functional API via React refs. This allows you to control the player procedurally from your own components.

Usage Example

import { useRef } from 'react';
import { LorapokPlayer, LorapokPlayerRef } from 'lorapok-player';

const MyComponent = () => {
  const playerRef = useRef<LorapokPlayerRef>(null);

  const handleAction = () => {
    // Programmatically load a new video
    playerRef.current?.load('https://example.com/new-video.mp4');
    
    // Control playback
    playerRef.current?.play();
    
    // Seek to 30 seconds
    playerRef.current?.seek(30);
    
    // Switch themes on the fly
    playerRef.current?.setTheme('Cyber Bloom');
  };

  return <LorapokPlayer ref={playerRef} src="..." />;
};

Exposed Methods

MethodSignatureDescription
load(url: string) => voidUpdates the source and prepares for playback.
play() => voidStarts or resumes playback.
pause() => voidPauses playback.
toggle() => voidToggles play/pause state.
seek(time: number) => voidJumps to a specific timestamp (seconds).
setVolume(v: number) => voidSets volume level (0.0 to 1.0).
setMuted(m: boolean) => voidToggles or sets mute state.
setTheme`(name: 'Midnight Core''Cyber Bloom'

🎨 STYLING & ADAPTIVE THEME

The player uses biological aesthetics with a reactive ambient lighting system. You can override global styles using the provided CSS variables:

:root {
  --lorapok-neon-cyan: #00F3FF;
  --lorapok-electric-purple: #BC13FE;
  --lorapok-midnight: #050510;
}

🛠 ADVANCED USAGE

HLS / DASH Support

The engine automatically detects and initializes hls.js or dash.js based on the file extension. No additional configuration is required.

Custom Keyboard Shortcuts

The library comes with a built-in interactive help system and standard shortcuts:

  • SPACE : Play/Pause
  • ← / → : Seek 5s
  • F : Fullscreen
  • M : Mute

🛠 TECH STACK

  • React 18 (Functional Components & Hooks)
  • HLS.js / Dash.js (Adaptive Streaming)
  • Framer Motion (Organic Transitions)
  • Vite (Next-gen Bundling)

📜 LICENSE

MIT © 2026 Lorapok Team. The core media engine and biological aesthetics are optimized for high-performance open computing.

Keywords

video-player

FAQs

Package last updated on 20 Jan 2026

Related posts