页面代码没有启动。

直接从文件夹打开 index.html 会阻止 JavaScript 模块加载,所以选择a camera后不会有任何反应。 请改用 http 方式提供此目录:

powershell -ExecutionPolicy Bypass -File serve.ps1

Then open http://localhost:8080/.

远程摄像头

一台设备开摄像头,另一台浏览器观看,可要求批准。

Version: d560ebb4b8
About the tool version
查看源码
摄像头画面为获批准的观看者加密传输;默认直连,可选云中转。是否需要批准由你决定。

Your camera video and enabled audio go to accepted viewers over separate encrypted WebRTC connections. Our introduction service carries connection negotiation, never video, audio or the viewer's note. Direct is the default; Cloud relay sends encrypted traffic through the relay service only when chosen. The relay sees connection addresses, timing and traffic volume, not decrypted media. Audio is off by default; the source requests microphone access only when you enable it. There is no recording feature. Stop or close the camera page and capture ends. Hiding it keeps the connection where the browser permits; a locked phone may pause capture until you return. An interrupted microphone stays quiet until you choose Resume microphone. Internet access is required for the introduction; pairing also reveals network addresses to the other browser. Viewer approval is on by default; turning it off lets anyone who knows your link or finds your listed camera watch while space is available.

实时检查: 核对中…

离线: 核对中…

Watch DevTools: one WebSocket lists camera names, and starting or connecting adds one for setup messages. Camera frames, enabled audio and the viewer's note travel the encrypted peer connection. The page stays available offline; pairing needs internet.

可用连接

Discovering in: 局域网
使用私密分组

Create a group code and share it with your other devices, or enter a code you received. The same code works across all five Connect Devices tools; each page lists its own kind of connection.

Anyone with the code can find sessions offered to this group. Group sessions are not listed on the local network. Passwords and host approval still apply. Codes stay in this open page; re-enter yours after reloading. For devices on different networks, the host should choose Cloud relay.

图标含义
  • Direct — connects between devices.
  • Cloud relay — connects through an encrypted internet relay.
  • 需要密码。
  • 无需密码。主机可能仍要求批准。
  • 需要主机批准。
  • 主机可能要求批准。
连接

Keep internet access available on both devices for discovery and pairing. Direct local connections need a reachable shared network; Cloud relay can connect devices on different networks.

用 Wi-Fi 或手机热点

  1. Turn on Personal Hotspot on an iPhone, or Wi-Fi hotspot on an Android phone, in the phone’s settings.
  2. Connect the other device to that hotspot from its Wi-Fi settings. Keep internet access available on both devices for nearby discovery and pairing.
  3. Open this tool on both devices and choose Join beside the expected connection. Enter a password or wait for host approval if required. If it is missing, use the host’s link or code.

The network must allow devices to reach each other. Some hotspots, guest networks, VPNs and managed devices block direct connections. Finding a nearby entry does not prove it is reachable or trusted. This page cannot turn on a hotspot.

How cameras are listed

The network list matches the internet address seen by our introduction service. A shared VPN or carrier network can include strangers, and nearby cameras can be missed. Private groups instead match a shared code and can list cameras on different networks. Both Direct and Cloud relay sessions appear; icons show their route and access requirements. Choose a camera you recognise.

Both devices need this page open and internet for pairing. Direct uses a local network that lets the devices reach each other. Cloud relay carries encrypted video and optional audio through the relay service when both people choose it. Nothing is recorded by this tool.

Share my camera

Allow camera access on this device. The other device opens your link or scans the QR code. Choose whether you want to approve each viewer.

Show in Available connections The link name is visible in the network or private group selected above. Private group sessions are not also listed in the network list. Turn this off to invite viewers by link only.

Camera The connection stays open when this tab is hidden where your browser allows it. Locking a phone can pause its camera. Return here if video pauses; choose Resume camera if needed. Stop camera ends this session.

About the viewer link name
About viewer approval
About enabling the microphone

About sharing video bandwidth

连接

Content travels directly between your devices. This choice never switches to a relay automatically.

Your camera is off. Nothing is paired.

Watch a camera

Join an available camera above, or enter a code or viewer link below and select Connect to camera. The invitation chooses the connection type. This device does not need camera or microphone access.

About your viewer name
About connecting to a camera

Enter a camera code to request a view.

A viewer wants to join

Approve only a person or device you recognise. Review later or Escape keeps this request in Viewer requests without approving it.

Stop sharing your camera?

Viewers are connected or connecting to this camera. Stopping will disconnect them and end the viewer link.

Connection details and troubleshooting

No camera connection yet.

Direct offers only the browsers’ own host addresses, without public STUN servers or TURN relays. A VPN or operating-system route can affect the path. Guest Wi-Fi isolation, a firewall or local-network permissions can prevent Direct. You can start a new Cloud relay session to send encrypted traffic through the relay service; the viewer must explicitly connect using that choice. A managed device can block either mode.

If pairing fails, stop on both devices, check that both are on the same reachable network, allow local-network access if asked, and try a new link. The camera device needs trusted HTTPS; ordinary HTTP on a LAN IP cannot request a camera.

A connection report includes browser and tool versions, stages, counts and error names, without addresses, pairing codes, viewer notes, video or audio. It stays in this tab. Copy or download it to share it yourself; nothing is uploaded automatically.

以 Markdown 查看

How to watch another device's camera

  1. Start on the camera device.Open this HTTPS page on the phone or computer whose camera you want. Choose a viewer link name or keep the random suggestion, choose Start camera, and allow camera access. Your browser chooses the initial camera. After permission, a Camera selector appears if this browser exposes more than one camera; use it to switch without ending the invitation. Audio is off by default. Select Enable microphone before starting to request microphone access; stop before changing this choice.
  2. Invite the viewing device.Choose Direct or Cloud relay beside Start camera. Open the viewer link or scan its QR code on the other device; the link carries that choice. You can also select a camera in Available connections. To discover across networks, create or enter the same private group code before starting and choose Cloud relay for reachability. Both devices need internet for pairing. Direct needs a route between devices; finding a session in a private group does not create that route. Cloud relay needs internet throughout.
  3. Connect the viewer.Check the icons showing Direct or Cloud relay and access requirements, then Join beside an available camera to request a view. A copied invitation or manually entered code still waits for Connect to camera. If Require my approval is on, approve each request you recognise on the source. A new request opens a review dialog; Review later or Escape keeps it in Viewer requests without approving it. With approval off, viewers connect automatically while space is available. Live video then appears in each viewer; use Play live video if the browser pauses playback. Shared audio starts automatically when your browser allows it; otherwise choose Unmute audio. Mute and Full screen are on the video. Supported browsers also offer optional motion or sound notifications.
  4. Resume if the browser pauses video, then stop.The connection stays open when the source tab is hidden where the browser permits. A phone can pause its camera when locked. Return to the source; choose Resume camera if needed to keep the same viewer link. If the microphone was interrupted, choose Resume microphone when ready. Stop camera and end the link releases the camera and microphone. If a viewer is connected or connecting, confirm Stop sharing or choose Keep sharing to cancel.

更完整的说明

如何在另一台设备上查看摄像头 在另一个浏览器查看摄像头,并在传送视频前批准观看者。可在互相可达的本地网络上直接连接,也可选择经 Cloudflare 转发的加密云中继。

有疑问?

Must both devices use the same Wi-Fi?

Direct needs a route between the devices. Wi-Fi and Ethernet on the same reachable local network can work together. A phone hotspot can also work if it allows device communication and both browsers have internet for pairing. A shared Wi-Fi name alone does not establish reachability: isolation, firewalls, VPN routes and browser permissions can block it. Alternatively, choose Cloud relay before starting and share its invitation; the viewer explicitly connects using that choice. Cloud relay needs internet throughout.

Does it work without internet?

Internet is required to pair and invite new viewers through our rendezvous. An already accepted Direct view can continue if the introduction service disconnects; the camera retries its invitation without restarting healthy capture or the existing view. Losing the direct route still ends the view. Cloud relay forwards encrypted video and enabled audio through the relay service and requires internet throughout, including renewal of its short-lived credentials.

Does this turn my phone into a webcam for meeting apps?

It provides a live view in another browser. It does not install a system webcam or make that camera available to desktop meeting applications.

Why must the camera page use HTTPS?

A browser requires a secure context and camera permission. Use the site's trusted HTTPS address. Ordinary HTTP on a local-network IP cannot request a camera; localhost is a development exception on the same computer.

Can anyone with the link watch?

With Require my approval on, a link or code permits a request and network-address exchange; the owner must approve each viewer before video. Turn approval off to let anyone with the link or a listed camera name watch while space is available. The optional viewer note is not proof of identity, so approve only the people and requests you expect.

Can several devices watch at once?

Up to eight accepted viewers can watch together, with separate encrypted connections. Shared video bandwidth divides a chosen video ceiling between them; browsers can lower each connection's quality when congested. A 1 Mbps ceiling permits four new viewers and higher choices permit eight. Audio and network overhead are additional. The browser cannot measure total Wi-Fi capacity, and device performance can also limit how many views work well. Lower the ceiling or disconnect individual viewers if sharing slows down. Lowering the ceiling keeps existing viewers connected, with fewer new admissions until space is available.

Can the tool measure my Wi-Fi bandwidth?

The browser does not expose the total capacity shared by your Wi-Fi devices. Choose a shared video ceiling that leaves room for other traffic. The tool divides that ceiling among viewers and WebRTC adapts each stream to its connection. If the browser cannot apply sender bitrate limits, the page reports that and its normal connection adaptation continues; the selected shared ceiling cannot be guaranteed there.

Can the camera keep working when my phone is locked?

It keeps the live connection and camera where your browser allows background use. Phone browsers can pause or end camera capture when locked; this page cannot override that. Return to the source to recover the same viewer link, or choose Resume camera if permission is needed again. A healthy approved video connection can survive loss of the introduction service. Returning to the source tries to restore pairing without replacing that video connection; Restore pairing offers a manual retry. If the direct connection itself ends, the viewer must reconnect. A remembered approval remains valid for the same host session unless the host removed that viewer. Stop and Disconnect remain final for that session.

Can I change cameras while sharing?

After camera permission, the Camera selector appears when this browser exposes multiple video devices. Choose another to keep the same invitation and viewer connection. Some devices need a brief pause while the old hardware is released. If switching fails, the tool keeps or restores the previous camera where possible; if neither camera can be opened, sharing ends and you can start again.

Does it send sound or record video?

Audio is off by default on the host. Select Enable microphone before starting to request the microphone and send encrypted audio to an accepted viewer using the chosen connection mode. Stop before changing this choice. If the browser interrupts the microphone, it stays quiet until you choose Resume microphone. The viewer tries to play shared audio automatically; if the browser requires a tap, choose Unmute audio on the video. Mute silences playback while sound detection remains available. Reload older viewer pages to receive audio; they can still watch video. There is no recording feature. A viewer can independently capture their screen, as with anything they can see.

Can I receive motion or sound alerts?

Supported browsers offer optional notifications in the connected viewer. Enable motion or sound detection and allow notifications. Sound detection requires audio from the host; playback can stay muted. Detection runs locally while the viewer page can run, and may pause in the background or during sleep. Lighting changes can trigger motion alerts and activity can be missed. This is not a safety monitor. On iPhone or iPad, browser notifications may require adding the site to the Home Screen.

Why can pairing fail on the same Wi-Fi?

Guest networks, client isolation, firewalls, local-network permissions and VPN routes can prevent Direct. Stop on both devices and check those settings, or deliberately choose Cloud relay on the host and share its new invitation. The viewer must explicitly connect using that mode. There is no automatic relay fallback, and a managed device can block relay connections too. If relay preparation fails, capture is released instead of retrying through Direct.