Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

react-live-player

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-live-player

Is a live stream media player for webcam and network media

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Simple ReactJs Live Media Player Component.

Installation

npm install react-live-player --save

The library have multiply components which can be used along the Player view:

  • DefaultMediaPlayer A default media player for live media stream. Properties

    1). mediaPlayback: the mediaplayback that will be used to control the player controls it must be an instead of mediaplayback class.

    2). onStop: this is a callback function that will be called when the current media has stoped or stoped by the user.

    • onEnded: this callback function that will be if the current media source has ended.
  • Camera : An Interface class to the user local camera.

    It has only one method called "request" which cam be used to request the user camera. The method return a promised object resolve(mediaplayback) and reject with current error message object.

  • MediaPlayback: A media playback class object interface

  • Player The media player react component view

  • IPlayback The interface abstract class for all media player inherits from.]

  • RecordPlayback: A simple interface to web api recording media playback class.

Uses

var React = require("react"); var Renderer = require("react-dom"); var {DefaultMediaPlayer} = require("react-live-player");

Renderer.render(, document.getElementById("app-id"));

Keywords

camera

FAQs

Package last updated on 24 Oct 2016

Did you know?

Socket

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.

Install

Related posts