-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
FilePlayer does not work if I passed an array of urls #1604
Comments
…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.
@niktverd I have raised a PR for a fix to this issue. You were actually right. This PR was actually the culprit behind the issue. The PR did solve an issue, but for an array of By fixing that, another issue was remaining, where the video was reloading every second. This was because of another issue where the PR did not take into consideration the array of Before this gets merged or even approved, you can check out the code and see if that has fixed the issue. |
…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.
) 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 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.
Be sure to search for your issue before opening a new one.
Current Behavior
Code Sandbox
Player does not load video if I add an array of video
There is
src
attribute containingundefined
Expected Behavior
Expected to work =)
Probably, problem comes from this PR
Steps to Reproduce
Environment
Other Information
The text was updated successfully, but these errors were encountered: