diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js
index c568302e..c91db295 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 (
diff --git a/src/components/VideoPlaceholder.css b/src/components/VideoPlaceholder.css
new file mode 100644
index 00000000..20dc70f7
--- /dev/null
+++ b/src/components/VideoPlaceholder.css
@@ -0,0 +1,23 @@
+.videoPlaceholder {
+ width: 100%;
+ position: relative;
+}
+.videoPlaceholder::before {
+ content: '';
+ display: block;
+ width: 100%;
+ padding-bottom: 56.25%;
+}
+.videoPlaceholderBox {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ position: absolute;
+ background: var(--choice);
+ border-radius: 6px;
+ color: var(--text);
+}
\ No newline at end of file
diff --git a/src/components/VideoPlaceholder.js b/src/components/VideoPlaceholder.js
new file mode 100644
index 00000000..193ba3e8
--- /dev/null
+++ b/src/components/VideoPlaceholder.js
@@ -0,0 +1,12 @@
+import React from 'react'
+import './VideoPlaceholder.css'
+
+export function VideoPlaceholder(props) {
+ return (
+
+ )
+}
\ No newline at end of file