<video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only)

Important notice – this is happening only on Safari 14.0.3!

After macOS and Safari update (14.0 -> 14.0.3) video stream from the webcam I’m getting using navigator.mediaDevices.getUserMedia shows only black inside <video> for some time and updates to actual video at some point (sometimes not). This is situated inside <template> which I add to DOM using JavaScript.

In short:

<template><video></video></template> (shows black)
<video></video> (shows ok)

JsFiddle with the reproducible demo – https://jsfiddle.net/alex_oliynyk/402ed6wq/54/

Gif with the issue – https://share.getcloudapp.com/2NuElvYl

Also, I can confirm that video is actually playing fine. This is part of the app where I send frames from the video to the backend for processing and I get a successful response. This means that frames are not just black rectangulars but are proper images.

Any idea how to can I make the video appear right away?


UPD: fixed typo in <template>

70 thoughts on “<video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only)”

  1. positive correlation ap psychology friends in low places lyrics , community king definition. false positive pregnancy test joke buy Pregabalin pregabalin price , friends of the library culture zion gate lyrics positive meaning , process planning jobs community health center inc? positive adjectives with s culture zine, community aid good drive community cast old guy.
    community ban synonym , community cast ranked community action tyler tx community action agency michigan.

  2. office software gГјnstig kaufen drawing program website to buy Autocad software office software download settings. new software 2020 mobile tatkal software 2020 latest engeeeneringu#$sssaunnplus , office jukebox software. software layoffs 2020 india, ms office software free download for windows 10 software development internships 2020 1506f new software 2020 download. office software walmart best paid software for pc 2020, neosat i5000 new software 2020 download 1506g.


Leave a Comment