box / box-ui-elements

React Components for Box's Design System and Pluggable Components

Home Page:https://developer.box.com/docs/box-ui-elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shaka is not defined

buraian opened this issue · comments

I am using Content Explorer installed via the Box CDN and it works fine except videos will not play/preview. The error I receive is "shaka is not defined".

To troubleshoot I tried installing the Shaka video player via CDN but it did not fix.

Please help! Thanks

Environment:

  • Elements version: 19.0.0

Desktop (please complete the following information):

  • OS: MacOS
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

What is the expected behavior? (Screenshots can be helpful here)

Screenshot 2024-02-02 at 4 29 27 PM

Hey @buraian, can you verify that you can see a network request for shaka-player.complied.js coming from our CDNs when you preview a video?

Hey @greg-in-a-box, I am not seeing a network request for that file or any file with the name shaka.

image Something of this nature should be called

I checked out our demo and I can see that file being loaded in.

There are few things you could check:

  1. if you are using the default preview version within the ContentExplorer or lower?
  2. if your firewalls are blocking our CDNs?
  3. do you see any other request from our domain that get requested, like if you open a PDF, do you see the pdf.min.js in the network? pdf.min.js should be coming from the same domain as the shaka-player.complied.js just different folder

Thanks for looking into!

I'm having issues with PDFs also. Here is the error I receive:
Cannot read properties of undefined (reading 'GlobalWorkerOptions')
Screenshot 2024-02-05 at 5 24 06 PM

I found that in Content Explorer when I preview a video that shaka-player.compiled.js does fetch. Here is what is loads from boxcdn.net if it helps:
Screenshot 2024-02-05 at 5 25 34 PM

I'm not using a firewall or VPN and the Content Explorer demo on the BOX UI Elements docs page works perfectly.

Let me know if you need anything further.

We are unable to reproduce the issue, are you able to provide any codepens or sample code to reproduce this?