From 0715c1a417025e9031a09aa43b57b9bc7d8afae3 Mon Sep 17 00:00:00 2001 From: jbpratt Date: Fri, 27 Jul 2018 11:49:53 -0500 Subject: [PATCH] added smashcast service --- api/src/Channel.h | 8 +++++--- src/components/ServiceSelect.jsx | 1 + src/components/StreamEmbed.jsx | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/api/src/Channel.h b/api/src/Channel.h index 799dde40..8cc76091 100644 --- a/api/src/Channel.h +++ b/api/src/Channel.h @@ -19,6 +19,7 @@ constexpr folly::StringPiece kAngelThumpService{"angelthump"}; constexpr folly::StringPiece kDailyMotionService{"dailymotion"}; constexpr folly::StringPiece kFacebookService{"facebook"}; constexpr folly::StringPiece kNSFWChaturbateService{"nsfw-chaturbate"}; +constexpr folly::StringPiece kSmashcastService{"smashcast"}; constexpr folly::StringPiece kTwitchService{"twitch"}; constexpr folly::StringPiece kTwitchVODService{"twitch-vod"}; constexpr folly::StringPiece kUstreamService{"ustream"}; @@ -26,11 +27,12 @@ constexpr folly::StringPiece kVaughnService{"vaughn"}; constexpr folly::StringPiece kYouTubePlaylistService{"youtube-playlist"}; constexpr folly::StringPiece kYouTubeService{"youtube"}; -constexpr std::array kServices{ +constexpr std::array kServices{ kAdvancedService, kAfreecaService, kAngelThumpService, kDailyMotionService, kFacebookService, kNSFWChaturbateService, - kTwitchService, kTwitchVODService, kUstreamService, - kVaughnService, kYouTubePlaylistService, kYouTubeService}; + kSmashcastService, kTwitchService, kTwitchVODService, + kUstreamService, kVaughnService, kYouTubePlaylistService, + kYouTubeService}; constexpr std::array kCaseInsensitiveServices{ kAngelThumpService, kTwitchService, kUstreamService}; diff --git a/src/components/ServiceSelect.jsx b/src/components/ServiceSelect.jsx index bc9f6be9..4b9e5db8 100644 --- a/src/components/ServiceSelect.jsx +++ b/src/components/ServiceSelect.jsx @@ -8,6 +8,7 @@ const ServiceSelect = props => + diff --git a/src/components/StreamEmbed.jsx b/src/components/StreamEmbed.jsx index 7e7b5e4a..b71608b9 100644 --- a/src/components/StreamEmbed.jsx +++ b/src/components/StreamEmbed.jsx @@ -18,6 +18,8 @@ const getSrc = (channel, service) => { return `https://www.facebook.com/video/embed?video_id=${channel}&autoplay=true`; case 'nsfw-chaturbate': return `https://chaturbate.com/embed/${channel}?bgcolor=black`; + case 'smashcast': + return `https://www.smashcast.tv/embed/${channel}?popout=true&autoplay=true`; case 'twitch-vod': return `https://player.twitch.tv/?video=v${channel}`; case 'twitch': @@ -73,6 +75,7 @@ StreamEmbed.propTypes = { 'dailymotion', 'facebook', 'nsfw-chaturbate', + 'smashcast', 'twitch-vod', 'twitch', 'ustream',