这个页面的代码没跑起来。

直接从文件夹里打开 index.html,浏览器会拦下 JavaScript 模块,于是你选好a camera之后,页面不会有任何反应。改用 http 把这个文件夹提供出去:

powershell -ExecutionPolicy Bypass -File serve.ps1

然后打开 http://localhost:8080/。

Remote Camera

Open a camera on one device and watch it in another browser, with optional viewer approval. Choose Direct or Cloud relay for encrypted live video.

版本: v2.1.0 · 63a93afd6b
关于工具版本
语言: 简体中文
查看源码
Camera video is encrypted for accepted viewers. Direct is the default; Cloud relay is optional. You choose whether approval is required.

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.

Available connections

发现范围: 本地网络
使用私密群组

创建群组代码并分享给其他设备,或输入收到的代码。同一个代码适用于全部五种连接设备工具;每个页面只列出本工具支持的连接。

任何知道代码的人都能找到向此群组公开的会话。群组会话不会显示在本地网络列表中。密码和主机批准要求仍然有效。代码只保留在当前打开的页面中,重新加载后需要再次输入。不同网络的设备应由主机选择云中继。

图标含义
  • 直连——设备之间直接连接。
  • 云中继——通过加密的互联网中继连接。
  • 需要密码。
  • 不需要密码,仍可能需要主机批准。
  • 需要主机批准。
  • 主机可能要求批准。
连接

两台设备都需要保持互联网连接以进行发现和配对。本地直连需要双方可互通的共享网络;云中继可以连接不同网络的设备。

使用 Wi-Fi 或手机热点

  1. 在手机设置中开启 iPhone 的“个人热点”或 Android 的 Wi-Fi 热点。
  2. 在另一台设备的 Wi-Fi 设置中连接这个热点。两台设备都需保留互联网连接,以便发现附近设备和配对。
  3. 在两台设备上打开此工具,选择目标连接旁的“Join”。如有要求,请输入密码或等待主机批准。列表中没有目标时,请使用主机的链接或代码。

网络必须允许设备之间互通。有些热点、访客网络、VPN 和受管理设备会阻止直连。附近列表中出现条目,不代表它一定可连接或可信。此页面无法开启手机热点。

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

连接

内容直接在你的设备之间传输。此选项绝不会自动切换到中转。

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.

说得更细的版本

如何在另一台设备上查看摄像头 让手机用于查看宠物、门口或辅助 DIY 检查。批准观看者,在互相可达的本地网络上用 Direct 连接,或选择加密的 Cloud relay。

常见问题

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.