Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 7, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ad1e05134cb890d8dd70b070a9f99ad4 to your computer and use it in GitHub Desktop.
Save parzibyte/ad1e05134cb890d8dd70b070a9f99ad4 to your computer and use it in GitHub Desktop.
const tieneSoporteUserMedia = () =>
!!(navigator.mediaDevices.getUserMedia)
// Si no soporta...
// Amable aviso para que el mundo comience a usar navegadores decentes ;)
if (typeof MediaRecorder === "undefined" || !tieneSoporteUserMedia())
return alert("Tu navegador web no cumple los requisitos; por favor, actualiza a un navegador decente como Firefox o Google Chrome");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment