@p2pstorm/shaka
v2.3.1
Published
P2PStorm Shaka Player integration - distributed video acceleration
Maintainers
Readme
@p2pstorm/shaka
P2PStorm integration for Shaka Player. Reduces CDN bandwidth costs by 50-70% through peer-to-peer video segment sharing. Supports both HLS and DASH.
Install
npm install @p2pstorm/shaka shaka-playerQuick Start
import shaka from 'shaka-player';
import { ShakaP2PEngine } from '@p2pstorm/shaka';
const engine = new ShakaP2PEngine({
core: {
appKey: 'YOUR_APP_KEY',
announceTrackers: ['wss://tracker.p2pstorm.vip']
}
});
const player = new shaka.Player();
await player.attach(document.getElementById('video'));
engine.bindShakaPlayer(player);
await player.load('https://your-cdn.com/video.m3u8');Dashboard
Get your AppKey at P2PStorm Dashboard
License
Apache-2.0
