
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
fleetplayer
Advanced tools
A high-performance, framework-agnostic, and headless HLS video player engine built with TypeScript and Media Source Extensions (MSE).
FleetPlayer is designed to be lightweight and modular, providing a powerful streaming core while giving developers complete control over the UI.
.m3u8 streams using Media Source Extensions (MSE).npm install fleetplayer
<video id="my-video" controls></video>
<script type="module">
import { FleetPlayer } from 'fleetplayer';
const videoElement = document.getElementById('my-video');
const player = new FleetPlayer(videoElement, {
autoStart: true
});
// Load an HLS stream
await player.load('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8');
</script>
import React, { useEffect, useRef } from 'react';
import { FleetPlayer } from 'fleetplayer';
const VideoPlayer = () => {
const videoRef = useRef<HTMLVideoElement>(null);
const playerRef = useRef<FleetPlayer | null>(null);
useEffect(() => {
if (videoRef.current) {
playerRef.current = new FleetPlayer(videoRef.current);
playerRef.current.load('your-stream-url.m3u8');
}
return () => {
playerRef.current?.destroy();
};
}, []);
return <video ref={videoRef} controls style={{ width: '100%' }} />;
};
new FleetPlayer(videoElement, config?)Initializes a new player instance.
videoElement: The HTMLVideoElement to attach to.config: (Optional) { autoStart?: boolean }player.load(url: string): Promise<void>Parses the manifest and prepares the player for playback.
player.play() / player.pause()Standard playback controls.
player.setQuality(levelIndex: number)Manually set the quality level.
levelIndex: The index of the level from getStats().levels.-1 for Auto ABR (default).player.getStats()Returns an object containing real-time performance data:
{
buffered: [{ start: number, end: number }],
bitrate: number, // Current bitrate in bps
level: number, // Current quality level index
levels: [...] // Available quality levels
}
player.destroy()Cleans up internal resources, stops workers, and resets the video source.
MIT © aniketyadav
FAQs
High-performance, headless HLS video player engine using MSE and TypeScript.
The npm package fleetplayer receives a total of 1 weekly downloads. As such, fleetplayer popularity was classified as not popular.
We found that fleetplayer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.