From 2ed085831ba147cbc868807c17c3c6ce2daa1002 Mon Sep 17 00:00:00 2001 From: Larvey <39219859+LarveyOfficial@users.noreply.github.com> Date: Fri, 21 Apr 2023 04:15:27 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8Allow=20Video=20Stream=20widget=20to?= =?UTF-8?q?=20play=20any=20video=20file=20type.=20(#835)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove type limitation for video player This allows the video player to play any video source, including m3u8 live streams, mp4, gifs, etc. * Fixed Linting. --- src/widgets/video/VideoFeed.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/video/VideoFeed.tsx b/src/widgets/video/VideoFeed.tsx index ab4e4744b..5486243a1 100644 --- a/src/widgets/video/VideoFeed.tsx +++ b/src/widgets/video/VideoFeed.tsx @@ -15,7 +15,6 @@ const VideoFeed = ({ source, controls, autoPlay, muted }: VideoFeedProps) => { const [player, setPlayer] = useState>(); const { classes, cx } = useStyles(); - useEffect(() => { // make sure Video.js player is only initialized once if (player) { @@ -50,7 +49,7 @@ const VideoFeed = ({ source, controls, autoPlay, muted }: VideoFeedProps) => { {/* eslint-disable-next-line jsx-a11y/media-has-caption */} );