File size: 355 Bytes
e90abd8
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from 'react'

export default function StreamPlayer({ refreshKey }) {
  // Force MJPEG re-connect when refreshKey changes (camera switch)
  return (
    <img
      key={refreshKey}
      src={`/stream.mjpg?k=${refreshKey}`}
      alt="live stream"
      className="max-w-full max-h-full object-contain rounded border border-line"
    />
  )
}