cloudinary-community / next-cloudinary

⚡️ High-performance image delivery and uploading at scale in Next.js powered by Cloudinary.
https://next.cloudinary.dev
MIT License
251 stars 70 forks source link

VTT error Cannot read properties of undefined (reading 'css') #483

Closed nolafs closed 1 week ago

nolafs commented 4 months ago

Bug Report

Describe the bug

I am getting an error from VTT in the console using lastest Nextjs 14.

TypeError: Cannot read properties of undefined (reading 'css') at e.setupThumbnailElement (index.js:115:40) at index.js:107:14

Also it seems it is not able to get the thumbnails from cloudinary.

https://res.cloudinary.com/ddfaiyncd/video/upload/q_auto/c_fill,g_auto,h_1000,w_1920/fl_sprite/-da66-4772-9985-55184468e94b_ldorqm.vtt

Testing the same link with .webp does return an image. I presume that VTT format is not supported by cloudinary.

Steps To Reproduce the error

Import of the package into my project:

import {CldVideoPlayer} from 'next-cloudinary'; import 'next-cloudinary/dist/cld-video-player.css';

Expected behaviour

No error and thumbnail request only when controls are true

Your environment

colbyfayock commented 2 weeks ago

hey @nolafs apologies for never following up on this, are you still experiencing this issue?

I've seen this happen before with configuration issues, can't remember exactly what it was, but wondering if it worked itself out

colbyfayock commented 1 week ago

closing since no response, please lmk if you're still experiencing this and reproduction steps