CommunityNews

CommunityNews

Introducing the <usermedia> HTML element | Blog | Chrome for Developers

Learn about the <usermedia> HTML element, a new Capability Element landing in Chrome 151.

Read in full here:

Most Liked

mortz

mortz

Are these features expected to come to other (non Chromium) browsers also or is this a chrome only thing?

pagan

pagan

Yes, it’s Chrome only.

Feature support can be detected with:

'HTMLUserMediaElement' in window

and shimmed with:

const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); 

document.querySelector('video').srcObject = stream;

I believe this new HTML element will allow developers to avoid calling getUserMedia() which may have an impact on Permissions (for camera, microphone, etc.) during video calls. Perhaps Google is trying to streamline the video call experience (Meet, Zoom) in Chrome.

Seems to expand on concepts related to <geolocation> (which is not Chrome specific).

Where Next?

Popular Frontend topics Top

First poster: bot
Building LightOS with React Native. The Light Phone 2 is a minimalist cellphone that was named one of Time Magazine’s best inventions of...
New
First poster: bot
10 bad TypeScript habits to break this year. TypeScript and JavaScript have steadily evolved over the last years, and some of the habits...
New
First poster: bot
Assertion Functions in TypeScript. TypeScript 3.7 implemented support for assertion functions in the type system. An assertion function ...
New
First poster: bot
A Proposal For Type Syntax in JavaScript. Today we’re excited to announce our support and collaboration on a new Stage 0 proposal to bri...
New
First poster: bot
Recommendations when publishing a Wasm library. A set of recommendations to make publishing a Javascript library that uses Wasm internal...
New
First poster: bot
View here: https://chaotic.netlify.app/ This thread was posted by one of our members via one of our news source trackers.
New
First poster: bot
Typescipt is terrible for library developers. We spend a disproportionate amount of time on types
New
First poster: bot
TIL: You Can Access A User’s Camera with Just HTML. So that’s the HTML capture attribute. It’s a pretty cool way to add a nicer user exp...
New
First poster: bot
Welcome to the Open Source Seed Initiative - Open Source Seed Initiative. Today, only a handful of companies account for most of the wor...
New
CommunityNews
A breakdown of how to build a custom Three.js shader that recreates the iridescent, sparkling look of foil stickers using vertex deformat...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
PragmaticBookshelf
Andy and Dave wrote this influential, classic book to help their clients create better software and rediscover the joy of coding. Almost ...
New
PragmaticBookshelf
Learn from the award-winning programming series that inspired the Elixir language, and go on a step-by-step journey through the most impo...
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1147 29994 760
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
PragmaticBookshelf
As digital systems increasingly run the world, mastery of the recurring patterns of software development risk is the key to fast and effe...
New
PragmaticBookshelf
Quickly turn complex problems into simple, working solutions using functional programming, safe concurrency, and the expressive tools of ...
New