diff --git a/package.json b/package.json
index 3571c61e..76a6c89e 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"react-helmet": "^6.1.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
+ "unpacker": "^1.0.1",
"web-vitals": "^1.0.1"
},
"scripts": {
diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js
index 65c024f2..b6875cd8 100644
--- a/src/components/VideoElement.js
+++ b/src/components/VideoElement.js
@@ -18,7 +18,8 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT
}
React.useEffect(() => {
- if (!streamUrl.includes('.mp4')) {
+ if (!streamUrl.includes('.mp4') && !streamUrl.includes('redirector.php')) {
+ console.log(streamUrl)
setError(false)
if (!videoRef || !videoRef.current || !streamUrl || streamUrl.length === 0 || loading) return;
@@ -46,7 +47,7 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT
if (!streamUrl || streamUrl.length === 0)
return No video selected
- if (!streamUrl.includes('.mp4')) {
+ if (!streamUrl.includes('.mp4') && !streamUrl.includes('redirector.php')) {
return (