diff --git a/src/app/(home)/admin/stream/obs-control-panel/_components/obs-control-panel-client.tsx b/src/app/(home)/admin/stream/obs-control-panel/_components/obs-control-panel-client.tsx index 8c03898..1fab121 100644 --- a/src/app/(home)/admin/stream/obs-control-panel/_components/obs-control-panel-client.tsx +++ b/src/app/(home)/admin/stream/obs-control-panel/_components/obs-control-panel-client.tsx @@ -33,6 +33,13 @@ import { PlayerSelector } from './player-selector' const obs = new OBSController() export function ObsControlPanelClient() { + useEffect(() => { + if (window.location.protocol === 'https:') { + toast.error('OBS controls require HTTP', { + description: 'Please use http:// version of the site for OBS controls', + }) + } + }, []) const [isConnected, setIsConnected] = useState(false) const players = api.leaderboard.get_leaderboard.useQuery({