Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flu-mse-player

flussonic12ISC0.1.0

Media Source Extension support for Flussonic.

flussonic

readme

flussonic-mse-player

flussonic-mse-player is a JavaScript library for playing video relies on flussonic backend, HTML5 video and MediaSource Extensions

Installation

npm install --save flussonic-mse-player

Usage

Construction:

const player = new FlussonicMsePlayer(element, url, opts)

element -

Methods:

play() - start playing

pause() -

stop() - stop playing

seek(utc: number) - seek

setTracks(tracks: Array<Track>)

Types:

MediaInfo { height: number, width: number, streams: Array<StreamInfo>, }

StreamInfo { bitrate
: number, codec
:
 string, content
:
 string, 
fps
:
 number, height
:
 number, length_size
:
 number, level
:
 string, pixel_height
:
 number, pixel_width
:
 number, profile
:
"Baseline"
 sar_height
:
 number,
 sar_width
:
 number,
 size
:
 string, track_id
:
 string, width
:
 number }

Track: string