react-jtv-chromecast

Chromecast for web

Usage no npm install needed!

<script type="module">
  import reactJtvChromecast from 'https://cdn.skypack.dev/react-jtv-chromecast';
</script>

README

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