diff --git a/src/components/EpisodeSelector.css b/src/components/EpisodeSelector.css index e69de29b..eb060543 100644 --- a/src/components/EpisodeSelector.css +++ b/src/components/EpisodeSelector.css @@ -0,0 +1,3 @@ +.episodeSelector { + margin-top: 20px; +} \ No newline at end of file diff --git a/src/components/EpisodeSelector.js b/src/components/EpisodeSelector.js index 3881c64c..e2281106 100644 --- a/src/components/EpisodeSelector.js +++ b/src/components/EpisodeSelector.js @@ -5,7 +5,7 @@ import './EpisodeSelector.css' export function EpisodeSelector({ setSeason, setEpisode, seasons, episodes, currentSeason, currentEpisode }) { return ( -
+
({ value: v.toString(), label: `Season ${v}`}))} selected={currentSeason}/>

setEpisode({episode: e, season: currentSeason})} choices={episodes.map(v=>({ value: v.toString(), label: v}))} selected={currentEpisode.season === currentSeason?currentEpisode.episode:null}/>
diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js index c568302e..381fb27c 100644 --- a/src/components/VideoElement.js +++ b/src/components/VideoElement.js @@ -1,6 +1,7 @@ import React from 'react' import Hls from 'hls.js' import './VideoElement.css' +import { VideoPlaceholder } from './VideoPlaceholder' // streamUrl: string // loading: boolean @@ -29,13 +30,13 @@ export function VideoElement({ streamUrl, loading }) { // TODO make better loading/error/empty state if (error) - return (

Your browser is not supported

) + return (Your browser is not supported) if (loading) - return

Loading episode

+ return Loading episode... if (!streamUrl || streamUrl.length === 0) - return

No video selected

+ return No video selected return (