Embedding the Nyecom webcams

A standing test stream is running so the website can be built before any camera is installed. Everything below works right now.

Want to see a real camera? The first live camera is on the live camera page. This page deliberately keeps using the permanent test pattern, so the examples below never break when cameras come and go.
This is a test pattern, not a camera. The moving counter proves the stream is live — watch it to gauge latency. When real cameras are adopted, only the stream name changes; none of the embed code below has to change.

1. Simplest: iframe the player

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:

2. Native: your own <video> with hls.js

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:

URLs

WhatURL
Embeddable player https://webcams.nyecom.net/player.html?stream=NAME
Raw HLS manifest https://webcams.nyecom.net/memfs/NAME.m3u8
Test stream nameteststream

Things worth knowing

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.