Implement live HLS streaming and player functionality

Remove console logs and refactor video element mounting logic in LivePage.tsx, update replit.md to reflect HLS live streaming implementation details.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/FiYsh04
This commit is contained in:
sebastjanartic
2025-09-26 15:46:34 +00:00
parent 664c4a7875
commit ceb9a94801
3 changed files with 9 additions and 15 deletions
-10
View File
@@ -11,8 +11,6 @@ declare global {
}
export default function LivePage() {
console.log('🔴 LivePage component rendered');
const videoRef = useRef<HTMLVideoElement>(null);
const hlsRef = useRef<any>(null);
const [isLoading, setIsLoading] = useState(true);
@@ -61,14 +59,6 @@ export default function LivePage() {
};
}, []);
// Callback ref to properly handle video element mounting
const videoCallbackRef = (element: HTMLVideoElement | null) => {
if (element && element !== videoRef.current) {
(videoRef as any).current = element;
console.log('🔴 Video element mounted, initializing player...');
initializePlayer();
}
};
const initializePlayer = async () => {
console.log('🔴 LivePage: Starting to initialize player...');