Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 379: TypeError: Cannot read properties of undefined (reading 'trim') #382

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zshall
Copy link

@zshall zshall commented Jul 23, 2024

Pull request type

What is the current behavior?

Vime's HLS provider throws an error when attempting to load on the latest version of HLS.js in Safari:

TypeError: Cannot read properties of undefined (reading 'trim')

This appears to be related to how HLS generates an object URL (blob:) and thus the source element fails the HLS file extension and content-type tests when this happens.

What is the new behavior?

Added a cache for storing the last known good HLS source URL and if one exists when the source isn't able to be found we return that one.

Does this introduce a breaking change?

  • Yes
  • No

Other information

I had to pin the version of @types/node to what it was because the newest version is causing TypeScript build errors, hence the lock file changes.

I've put screenshots and reasoning into the issue and tested with Svelte on Safari and Chrome. Let me know if anything needs to change!

#379 (comment)
#379 (comment)

image

Copy link

vercel bot commented Jul 23, 2024

@zshall is attempting to deploy a commit to the Vidstack Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant