npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stserver-frontend-comp

v1.9.3

Published

<div align="center"> <a > <img src="images/impleo_logo.png" alt="Logo" > </a> </div>

Downloads

35

Readme

stserver-frontend-comp

stserver-frontend-comp is a js frontend React component library that helps you build a user interface for StanagOnDemand Server.
It contains standalone reusable components that serve as a building blocks for FMV web application.
The modular components do not contain much application specific dependencies - they provide a basic functionality, so you can easily reuse them, adding your own application specific "look & feel" and logic.

Excluded dependencies

Library excludes the following from the package, so they must be present in the hosting application

  • react
  • react-dom

Peer Dependencies

  • react
  • react-dom
  • @material-ui/core
  • @material-ui/icons
  • @material-ui/lab
  • socket.io-client

Live Demo

Components

Players

Player components implement a video playback and KLV metadata extraction functionality.

SensorPlayer

SensorPlayer is a high level component that implements a video playback and KLV metadata extraction functionality for all supported (by StanagOnDemand server) operational modes and protocols. It supports both Live and VOD playback. In most cases user should use this component when building a front end.

Usage
VOD scenario
import './App.css';
import { SensorPlayer } from 'stserver-frontend-comp';

function App() {
  return (
    <div className="App" >     
      <SensorPlayer serverUrl='https://stserver.impleotv.com'
        missionIdOrName='Truck' sensorIdOrName='EO-IR' videoDir='videos'
        username='guest' password='guest'
        clientId='storybookDemo'
        width={640} height={360}/>
    </div>
  );
}

export default App;
Live and Live low latency scenarios
import './App.css';
import { SensorPlayer } from 'stserver-frontend-comp';

function App() {
  return (
    <div className="App" >     
      <SensorPlayer serverUrl='https://stserver.impleotv.com'
        mode='lowLatency'
        platformName='Legion'
        missionIdOrName='Truck' sensorIdOrName='EO-IR' 
        username='guest' password='guest'
        wsVideoStreamPort={9010}
        useReverseProxy={true}   
        width={640} height={360}/>
    </div>
  );
}

export default App;

HlsPlayer

HlsPlayer is a low level component that implements a video playback and KLV metadata extraction functionality for HLS protocol. It supports both Live and VOD playback. SensorPlayer wraps this component, so it should not be used directly.

Usage
import './App.css';
import { HlsPlayer } from 'stserver-frontend-comp';

function App() {
  return (
    <div className="App" >     
      <HlsPlayer serverUrl='https://stserver.impleotv.com'
        missionIdOrName='Truck' sensorIdOrName='EO-IR' videoDir='videos'
        username='guest' password='guest'
        width={640} height={360}/>
    </div>
  );
}

export default App;

LiveLowLatencyPlayer

LiveLowLatencyPlayer is a low level component that implements a video playback and KLV metadata extraction functionality in Live Low Latency mode. SensorPlayer wraps this component, so it should not be used directly.

Klv metadata

KlvView

KlvView implements a JSON based MISB metadata hierarchical presentation.

Usage
import './App.css';
import { KlvView } from 'stserver-frontend-comp';

const Pckt601 = {
    "1": -10117, 
    "2": 1355755344617000,
    "3": "test",
    "4": "AF-101",
    "5": 159.974,
    "6": -0.4315,
    "7": 3.4059,
    "8": 147,
    "9": 159,
    "10": "MQ1-B",
    "11": "EO",
    "12": "WGS-84",
    "13": 40.847380520333815,
    "14": -104.97439262217624,
    "15": 14190.7
};

function App() {
  return (
    <div className="App" >     
      <KlvView theme='light' data={Pckt601}/>
    </div>
  );
}

export default App;

MissionTimeline

MissionTimeline is a generic timeline for mission presentation and (optional) current playback position. It requires an external sensor data source. MissionTimeline shows all sensor that belong to the mission. If recording contains non-continues clips, they are placed on a timeline accordingly. Additionally, MissionTimeline provides events on clicked bookmarks and position.

SensorTimeline

SensorTimeline is a generic timeline for mission presentation and (optional) current playback position. It requires an external sensor data source. Additionally, it provides events on clicked bookmark and position.

StMissionTimeline

StMissionTimeline is a StServer helper wrapper for the MissionTtimeline control. It contains MissionTtimeline control and a code that pulls data from the server. StMissionTimeline shows all sensor that belong to the mission. If recording contains non-continues clips, they are placed on a timeline accordingly. Additionally, StMissionTimeline provides events on clicked bookmarks and position.

CanvasGrid

CanvasGrid is a low level component that renders a grid. It is a helper component that is used by higher level components for showing background.

Tools

CutControl

CutControl implements a timeline for cutting and exporting clips out of the video files.

Usage
import './App.css';
import { CutControl } from 'stserver-frontend-comp';

function App() {
  return (
    <div className="App" >     
      <CutControl theme='light'
        markIn={0} markOut={2800} duration={3600} curPos={1000}
        crosshairColor={'red'} gridColor={'grey'} gridOpacity={0.2} 
      />
    </div>
  );
}

export default App;