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

Fix #1604 - FilePlayer does not work if I passed an array of urls #1612

Merged

Conversation

anampartho
Copy link
Contributor

This PR aims to fix FilePlayer does not work if I passed an array of urls #1604

PR #1538 was setting the src of the video element to undefined. Because of this, even if the users passed an array of urls, the video element would not play because it got an src of undefined;

After fixing the undefined src issue, another PR was making an infinite loop issue when the user passed an array of URLs. There, the author set the srcObject to null. There as well, a check for url prop was missing.

This PR aims to fix both of these overlooked aspects.

Copy link

@niktverd niktverd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks ok

@kamerondotcom
Copy link

I'm having a hard time importing this PR w/ this fix into my project, is there an ETA on this PR being merged in?

…urls

PR cookpete#1538 was setting the src of the video element to undefined. Because
of this, even if the users passed an array of urls, the video element
would not play becuase it got a `src` of `undefined`;

After fixing the undefined `src` issue, another PR was making a infinite
loop issue when user passed an array of urls. There, the author set the
`srcObject` to null. There as well, a check for `url` prop was missing.

This PR aims to fix both of these overlooked aspects.
@cookpete cookpete force-pushed the fix-1604/array-of-urls-not-working branch from 2d66d6e to 0f145ed Compare August 31, 2023 20:12
@cookpete
Copy link
Owner

I think #1648 has fixed most of what this PR was doing, apart from the componentDidUpdate check. Thanks so much for the work 🙏

@cookpete cookpete merged commit 64e5cd3 into cookpete:master Aug 31, 2023
1 check passed
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.

FilePlayer does not work if I passed an array of urls
5 participants