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

Using src attribute instead of source element #5701

Closed
wants to merge 1 commit into from

Conversation

BVFernandesFEUP
Copy link

Description

Possible fix to issue #4851 by using src attribute to generate the source element when the last is undefined.

Specific Changes proposed

In the loader.js, I tried modify the player data structure to add the source object (with src and type) using simply the src attribute, when the video-js class is created in the index.html file. But, sadly, it doesn't work, because the playerOptions object is edited and not the player object.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chome, Firefox, IE)
    • Unit Tests updated or fixed
    • Docs/guides updated
    • Example created (starter template on JSBin)
  • Reviewed by Two Core Contributors

@welcome
Copy link

welcome bot commented Dec 19, 2018

💖 Thanks for opening this pull request! 💖

Things that will help get your PR across the finish line:

  • Run npm run lint -- --errors locally to catch formatting errors earlier.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@gkatsev
Copy link
Member

gkatsev commented Jan 3, 2019

Thanks for your patience, finally had time to look at this. I think you actually figured out a good way of doing it, you just needed to tweak it a bit. I'll make a PR against your branch with the changes to get it to work.

@gkatsev
Copy link
Member

gkatsev commented Jan 3, 2019

I made a PR against your branch over here https://github.com/BVFernandes/video.js/pull/1/files?utf8=%E2%9C%93&diff=unified&w=1

@gkatsev
Copy link
Member

gkatsev commented Jan 18, 2019

@gkatsev
Copy link
Member

gkatsev commented Feb 11, 2019

There are still pending issues with the changes in #5762, going to close this PR for now.

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.

None yet

2 participants