next-typescript icon indicating copy to clipboard operation
next-typescript copied to clipboard

Updating Mux video component

Open matiasperz opened this issue 3 years ago • 3 comments

Updates on mux-video.tsx:

  • Supports lazy loading of hls.js due to some browsers supporting it natively
  • Supports video lazy loading
  • Supports video lazy loading intersection observer config

Updates on use-intersection-observer.ts:

  • Encapsulates and exports a utility to create observers outside the hook context
  • Unobserving elements that are only triggered once

matiasperz avatar Apr 04 '22 23:04 matiasperz

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/basement/next-typescript/86wDyVTS7Vx5sP6uiMXxj3mPnFui
✅ Preview: https://next-typescript-git-mux-video-improvements-basement.vercel.app

vercel[bot] avatar Apr 04 '22 23:04 vercel[bot]

@matiasperz Otra cosita: acá me gustaría que devuelva directamente el boolean, tipo return [ref, inView].

Nos pasó en MrBeast q habíamos asumido q devolvía directamente el inView, agarramos el objeto entero, y como el objeto da truthy teníamos un bug.

julianbenegas avatar Apr 07 '22 12:04 julianbenegas

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-typescript ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2023 2:21pm

vercel[bot] avatar May 12 '23 06:05 vercel[bot]