import React, { useRef } from "react"; import { View, StyleSheet, Text, ActivityIndicator } from "react-native"; import { Video, ResizeMode, AVPlaybackStatus } from "expo-av"; interface LivePlayerProps { streamUrl: string | null; channelTitle?: string | null; onPlaybackStatusUpdate: (status: AVPlaybackStatus) => void; } export default function LivePlayer({ streamUrl, channelTitle, onPlaybackStatusUpdate }: LivePlayerProps) { const video = useRef