-
Notifications
You must be signed in to change notification settings - Fork 6
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
Prevent LockedStream console error by providing metaData in advance #71
Conversation
Providing the metadata should prevent the locked stream error. Additional formatting fixes were also applied.
One caveat to note here is that this behavior is only applied to the frontend of the site. It might be worth applying this same consideration to the editor interface, but it feels like a lower value-to-time ratio for that lift. If we were to do it in the editor we'd just need to be able to get the attachment metadata via a JS method and then just do the same thing I'm doing in the frontend.js file when WebAmp is initialized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested well 👍
@cadic resolving the merge conflict here and then merging this would be helpful, thanks! |
@Sidsector9 this needs another review after conflicts resolved (just package-lock.json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a fix for JS linting errors
Description of the Change
This change resolves a reported error that occurs due to the metaData key being missing from the initialTracks provided to Webamp.
You can reproduce this error on the official CodeSandbox demo by just removing the metaData key: https://codesandbox.io/s/y0xypox60z.
Closes #46
How to test the Change
Changelog Entry
Credits
Props @iansvo @ajmaurya99
Checklist: