livestreams
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    livestreams

    React library for embedding a variety of livestreaming platforms into your application.

    NPM JavaScript Style Guide

    Install

    npm install --save livestreams

    Usage

    import React, { Component } from 'react'
     
    import { Player, Chat } from 'livestreams';
    import 'livestreams/dist/index.css'
     
    class ExampleStream extends Component {
      render() {
        return <Player source="twitch" id="Anomaly" autoPlay />
      }
    }
     
    class ExampleChat extends Component {
      render() {
        return <Chat source="twitch" id="Anomaly" />
      }
    }

    Using SSR?

    If you're using server-side rendering, you must manually set the origin before creating any elements.

    import { setOrigin } from 'livestreams';
     
    setOrigin('localhost');

    License

    MIT © insertish

    Keywords

    none

    Install

    npm i livestreams

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    89 kB

    Total Files

    25

    Last publish

    Collaborators

    • insertish