A standing test stream is running so the website can be built before any camera is installed. Everything below works right now.
stream name changes; none of the embed code below has to change.
Drop this anywhere. It is responsive, plays on iOS and Android, reconnects by itself if the camera drops, and needs no JavaScript on your page.
<div style="position:relative;width:100%;aspect-ratio:16/9">
<iframe
src="https://webcams.nyecom.net/player.html?stream=teststream"
style="position:absolute;inset:0;width:100%;height:100%;border:0"
allow="autoplay; fullscreen; picture-in-picture"
allowfullscreen
title="Nyecom webcam"></iframe>
</div>
Live result:
Use this if you want the player styled to match the site. The stream sends
Access-Control-Allow-Origin: *, so this works cross-origin from
nyecom.net with no extra setup.
<video id="cam" playsinline muted autoplay controls style="width:100%"></video>
<script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js"></script>
<script>
var src = 'https://webcams.nyecom.net/memfs/teststream.m3u8';
var video = document.getElementById('cam');
if (Hls.isSupported()) {
var hls = new Hls({ lowLatencyMode: true });
hls.loadSource(src);
hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = src; // Safari and iOS play HLS natively
}
</script>
Live result:
| What | URL |
|---|---|
| Embeddable player | https://webcams.nyecom.net/player.html?stream=NAME |
| Raw HLS manifest | https://webcams.nyecom.net/memfs/NAME.m3u8 |
| Test stream name | teststream |
Autoplay must be muted. Browsers block audio-on autoplay. Keep the
muted attribute or the video will not start on its own. Cameras will be
silent anyway.
Expect 6–10 seconds of delay. That is normal for HLS, which is the trade for playing everywhere without a plugin. It is not a fault.
The manifest redirects to a tokenised URL. Each viewer is handed a
?session=… playlist so the server can count viewers. Point your player at
the plain .m3u8 and let it follow — do not hard-code a session URL.
Serve your page over HTTPS. An
http:// page cannot load this stream; browsers block mixed content.
Served from webcams.nyecom.net. Test stream is 1280×720 at 25 fps.