diff --git a/src/components/WebRtcPlayer.astro b/src/components/WebRtcPlayer.astro index db219c9..ee9a028 100644 --- a/src/components/WebRtcPlayer.astro +++ b/src/components/WebRtcPlayer.astro @@ -6,18 +6,11 @@ interface Props extends HTMLAttributes<"div"> { streamUrl: string; iceServers?: any[]; poster?: string; - checkStreamFn?: string; - retryInterval?: number; } -const { - streamUrl, - iceServers = [], - poster, - class: className, - checkStreamFn, - retryInterval = 5000, -} = Astro.props; +const { streamUrl, iceServers = [], poster, class: className } = Astro.props; + +const id = `${Math.random().toString(36).slice(2)}`; --- -