Prompt
Why do users hear audio but see a black video screen in my app?
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
A black video screen with working audio usually means the media is playing, but the video track isn’t being rendered correctly. Common causes include:
1) Video element is present but not sized/visible
- The
<video>tag may havewidth/height: 0,display: none,visibility: hidden, or be behind another element. - Parent containers can also collapse or clip the video.
2) Missing or blocked autoplay / inline playback behavior
- On mobile browsers, especially iOS, video may require:
playsinlinemutedfor autoplay- a user gesture to start playback
- Without these, audio/video behavior can be inconsistent.
3) Codec or format issue
- The browser may support the audio stream but not the video codec.
- For example, a file/container may be partially supported, or the video track is encoded with an unsupported codec.
4) CSS or canvas rendering problem
- If you’re drawing the video to a canvas or using a custom player, the rendering step may be failing.
- Common issues:
- canvas not being updated
- wrong draw loop
- drawing before metadata is loaded
- WebGL/context failures
5) DRM / permissions / cross-origin restrictions
- If the video comes from another domain and CORS is misconfigured, rendering or processing can fail.
- DRM-protected content may require specific playback setup.
- Some browsers can play audio while video display fails depending on the pipeline.
6) GPU / hardware acceleration issues
- Black video can happen when hardware decoding or GPU rendering fails.
- Sometimes disabling hardware acceleration or updating drivers fixes it.
7) Stream/app pipeline issues
- In streaming apps, audio and video may arrive separately.
- You may be receiving only the audio track, or the video track may be stalled, detached, or malformed.
Quick things to check
- Confirm the video element actually has dimensions and is visible.
- Check browser console for media errors.
- Inspect
videoWidthandvideoHeightafterloadedmetadata. - Verify the source is a supported video codec.
- Test in another browser/device.
- If using HLS/DASH/WebRTC/custom pipeline, verify the video track is present and frames are being rendered.
If you want, I can help you debug it more precisely if you share:
- platform/browser
- whether it’s
<video>, WebRTC, HLS/DASH, or canvas-based - the relevant code
- any console errors