SalesforceLabs / VideoViewer

This lightning web component allows users to play video files natively in Salesforce. No need to download a video file to view it. There is also no need to transfer the video file to a third party service.
https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000GCk6xUAD
BSD 3-Clause "New" or "Revised" License
24 stars 18 forks source link

Suddenly seeing "There was an error playing the video" on all videos and records #12

Open MlleBaeten opened 2 years ago

MlleBaeten commented 2 years ago

We display this component directly on the File/ContentDocument record page if the filetype is mp4, but I just noticed that it's showing the error message and never showing the video. I checked the other application of this component (on Chatter Groups), and I'm seeing the error message there at all.

No change to my browser, browser settings, file settings, etc. since it last worked.

rockyjsmith commented 2 years ago

Is this still occurring?

oleg-mastriukov commented 2 years ago

Hey there, I'm getting the same error right after LWC installation to a scratch org. It happens both on record detail page and on file detail page, the video player pops up for a second and then the error is shown. Guys on Appexchange mentioned that we need to add some URLs to CSP, but which ones exactly?

k-kreitzer commented 1 year ago

We recently implemented this and are seeing the error in production. From doing some digging, it seems that Chrome is throwing a CORB error due to a mismatch in MIME type. Is there something that can be done within the component to ensure that it is sending the proper MIME type and not just text/plain?