🚧 The Shelby Explorer is currently in beta and is under active development

Shelby SymbolMedia Kit

Video Player

React video player for Shelby


@shelby-protocol/player is a React video player built for streaming from Shelby's decentralized storage. Powered by Shaka Player, it supports HLS streaming with adaptive bitrate out of the box.

Demo Video
0:00 / 0:00

Installation

npm install @shelby-protocol/player

Quick Start

import { VideoPlayer } from "@shelby-protocol/player";

function App() {
  return (
    <VideoPlayer
      src="https://example.com/video.m3u8"
      poster="https://example.com/poster.jpg"
      title="My Video"
    />
  );
}

Props

PropTypeDescription
srcstringVideo URL (HLS, DASH, or direct)
posterstringPoster image URL
titlestringVideo title for controls
autoplaybooleanAuto-play on load
mutedbooleanStart muted
loopbooleanLoop playback

Composable Components

The player is fully composable. Use individual components to build custom layouts:

Learn More


On this page