react-jtv-chromecast

1.0.18 • Public • Published

react-jtv-chromecast

Sender app component for chromecast.

NPM JavaScript Style Guide

Install

npm install --save react-jtv-chromecast

Usage

import React, { Component } from 'react'
 
import {JTVChromeCast, JTVCastUI} from 'react-jtv-chromecast';
import './css/castvideo.css';
 
class Example extends Component {
  
  render () {
 
    let mediaContent = [{
      'sources' : ['video_url'],
      'thumb' : 'thumb_url',
      'title' : 'Title of the video'
    }]
    return (
          <JTVCastUI applicationId={'applicationId'} mediaContent={mediaContent} />
    )
  }
}

License

MIT © rcmahapatra

Dependencies (0)

    Dev Dependencies (27)

    Package Sidebar

    Install

    npm i react-jtv-chromecast

    Weekly Downloads

    9

    Version

    1.0.18

    License

    MIT

    Unpacked Size

    209 kB

    Total Files

    6

    Last publish

    Collaborators

    • bideshdey
    • rama357
    • khat33b
    • sudipta05