Pixel Streaming Touch, WebSocket & UI Fix Guide
In this article
Pixel streaming touch, WebSocket and UI problems usually come from three places: the browser blocking insecure WebSocket connections, the touch input mode not matching the stream's input handling, or the player UI layer sitting above the video canvas and swallowing clicks. Fix them in that order: confirm the page is served over HTTPS with a valid certificate so the wss:// signalling connection can open, check that the stream is configured for touch or mouse input as needed, and make sure UI overlays use pointer-events correctly so touches reach the video element. The steps below walk through each check without guessing at menu labels that vary by version.
What You'll Need
- A desktop or mobile browser with developer tools available (Chrome, Edge, Firefox or Safari).
- The exact URL of your pixel streaming player page, including the port if one is used.
- Access to the machine or service hosting the stream so you can restart it if needed.
- Knowledge of whether the stream expects mouse, touch, or both as input.
- A second device (phone or tablet) to test touch behaviour separately from desktop.
Step-by-Step
- Open the player page and check the browser console first. Press F12 (or right-click and choose Inspect) and switch to the Console tab. Look for messages containing
WebSocket,wss,mixed content, orfailed to connect. These tell you whether the problem is transport or UI before you change anything. - Confirm the page is loaded over HTTPS. If the address bar shows
http://or a certificate warning, the browser will blockwss://connections from an HTTPS page and may blockws://from an HTTPS page entirely. Load the page over HTTPS with a valid certificate. If you are testing locally, use the host's own HTTPS setup rather than disabling browser security. - Verify the signalling URL and port. In the Network tab, filter by WS (WebSocket). You should see a connection attempt to the signalling server. If it shows a pending or failed state, the host or port in the player configuration is wrong or the signalling service is not running. Correct the URL in the player config and reload.
- Check that the stream itself is running. A WebSocket that connects but immediately closes often means no stream is available to attach to. Restart the stream service on the host, wait for it to report ready, then reload the player page.
- Test input mode. Click or tap on the video area. If the stream responds to mouse but not touch, the player is likely in mouse mode. Look in the player's settings or configuration for an input option and set it to touch where touch input is required. Labels differ by version, so look for input, controls, or interaction sections rather than a specific wording.
- Check UI overlays for pointer-events. If buttons respond but the video does not, or the reverse, an HTML element is sitting on top of the canvas. In the Elements panel, inspect the element at the point you are tapping. Any overlay covering the video should have
pointer-events: noneunless it is meant to be interactive. Fix the CSS and reload. - Test on a real touch device. Desktop emulation does not always reproduce touch handling. Open the same URL on a phone or tablet on the same network, and note whether the stream loads, whether the video plays, and whether taps register. This separates device-specific issues from server issues.
- Clear the browser cache and reload. Stale player scripts are a common cause of UI that half-works after an update. Use a hard reload (Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac) or clear site data for that page only.
- Check for browser extensions and content blockers. Open the page in a private window with extensions disabled. If it works there, re-enable extensions one at a time to find the one interfering with WebSocket or canvas rendering.
- Restart the host service and retest. If nothing above changed the result, restart the pixel streaming service on the host machine, confirm it is listening, and reload the player. Note the exact console error before and after so you can tell whether the restart changed anything.
Common Mistakes
- Testing only in a desktop browser and assuming touch works because mouse clicks do. Touch and mouse are handled differently by many players.
- Ignoring mixed-content warnings. An HTTPS page cannot open a plain
ws://connection, and the console message is easy to miss among other logs. - Putting a full-screen UI layer over the video without
pointer-events: none, which silently blocks every tap. - Changing player configuration without reloading the page, then concluding the change did nothing.
- Assuming a connected WebSocket means the stream is healthy. A connection can open and close immediately if no stream is available.
- Testing on a phone over a mobile network when the stream host is only reachable on the local network.
Tips
- Keep the console and Network tabs open during every test so you see the failure at the moment it happens.
- Write down the exact error text and the step that produced it. It makes the next fix much faster.
- Test one change at a time. Changing the URL, input mode and CSS together makes it impossible to know which fix worked.
- Use the same browser version on desktop and mobile where possible, so behaviour is comparable.
- If the stream works on one network but not another, treat it as a network or certificate issue before touching the UI.
Troubleshooting
If the WebSocket will not connect at all, check the signalling host and port in the Network tab, confirm the service is running on the host, and confirm the page is HTTPS with a valid certificate. If it connects and then closes, restart the stream service and confirm a stream is actually available. If the video plays but taps do nothing, inspect the element under your finger and fix pointer-events on any overlay. If taps register in the wrong place, the video may be scaled or letterboxed and the input coordinates are being mapped incorrectly; check that the player is not applying CSS transforms to the canvas. If only some buttons fail, check whether those buttons are inside an element with pointer-events: none inherited from a parent. If the page works in a private window but not normally, an extension is interfering. If nothing works on mobile but desktop is fine, confirm the phone is on the same network as the host and that the URL uses the host's reachable address, not localhost.
Frequently Asked Questions
Why does the stream connect but show a black screen?
The WebSocket is open but no video frames are arriving. Restart the stream service on the host, confirm a stream is running, and reload the player page.
Why do taps not register on mobile?
Most often a UI overlay is covering the video without pointer-events: none, or the player is in mouse input mode. Check both in that order.
Can I use pixel streaming over plain HTTP?
Browsers restrict insecure WebSocket connections from HTTPS pages, and some features require a secure context. Serve the player page over HTTPS with a valid certificate.
Why does the page work in a private window but not normally?
A browser extension or cached site data is interfering. Disable extensions one at a time, or clear site data for that page only.
Does touch input work the same on every device?
No. Touch handling differs between browsers and devices, so test on a real phone or tablet rather than relying on desktop emulation.
What should I check first if nothing works?
The browser console and the Network tab's WebSocket entry. They tell you whether the problem is the connection or the UI, which determines every step after that.