Refactored chat implementation to work with Websockets;

Fixed video.js working on Docker Container;
Added sample video to VideoPlayer for now;
Bug: Requests to the server take extra long to return a response;
This commit is contained in:
Chris-1010
2025-01-25 15:29:17 +00:00
parent f4aed8b0cc
commit 60c9d1986e
10 changed files with 437 additions and 489 deletions

View File

@@ -27,11 +27,14 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ streamId }) => {
controls: true,
fluid: true,
responsive: true,
// autoplay: true,
loop: true,
aspectRatio: "16:9",
sources: [
{
src: `/api/hls1/${streamId}`,
type: "application/x-mpegURL",
src: `/images/sample_game_video.mp4`,
// type: "application/x-mpegURL",
type: 'video/mp4'
},
],
});