From 288c18ddd582a9cd8b629216041a0166d4c23987 Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Sat, 2 Sep 2017 11:48:22 +0100 Subject: [PATCH] Add Twitch player --- README.md | 3 +- src/ReactPlayer.js | 3 ++ src/demo/App.js | 8 +++ src/players/Facebook.js | 6 +-- src/players/Twitch.js | 115 ++++++++++++++++++++++++++++++++++++++++ src/utils.js | 5 ++ 6 files changed, 134 insertions(+), 6 deletions(-) create mode 100644 src/players/Twitch.js diff --git a/README.md b/README.md index 489cc8cf..85cd4244 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ReactPlayer [![Dependency Status](https://img.shields.io/david/CookPete/react-player.svg)](https://david-dm.org/CookPete/react-player) [![devDependency Status](https://img.shields.io/david/dev/CookPete/react-player.svg)](https://david-dm.org/CookPete/react-player?type=dev) -A react component for playing a variety of URLs, including file paths, YouTube, Facebook, SoundCloud, Streamable, Vidme, Vimeo, Wistia and DailyMotion. Used by [rplayr](http://rplayr.com), an app to generate playlists from Reddit URLs. +A react component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vidme, Vimeo, Wistia and DailyMotion. The component parses a URL and loads in the appropriate markup and external SDKs to play media from [various sources](#supported-media). [Props](#props) can be passed in to control playback and react to events such as buffering or media ending. @@ -180,6 +180,7 @@ Prop | Description * Vidme videos are [resolved](https://docs.vid.me/#api-Video-DetailByURL) and played in a [`