-
Notifications
You must be signed in to change notification settings - Fork 13
[2.x] Added external video support #1068
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
base: 2.x
Are you sure you want to change the base?
Conversation
…ez/core into feature/external-video-support-2.x
|
|
||
| Str::macro( | ||
| 'embedUrl', | ||
| function ($url) { |
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.
This function is taken from Statamic, since it is not installed by default we utilise this macro
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.
Be aware that the license within Statamic does not necessarily allow for direct copies of its code without direct consent: https://github.com/statamic/cms/blob/5.x/LICENSE.md
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.
Please double check with @jackmcdade 😇 and add some love notes if it's ok to copy-paste ❤️
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.
Go for it, it's nothing particularly proprietary – just a bunch of string manipulation. Merry Christmas! 🎄
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.
Awesome! Thanks Jack, Merry Christmas 🚀
|
See: #1135 with regards to failing tests |
|
Follow up: RAP-1737 |
This PR adds external video support (By default Magento only does Vimeo + Youtube) to Rapidez 2.x
Due to it being available for an old Rapidez version it's been made to be backwards compatible so the images variable remains.
Once this has been approved i will create a PR for 3.x and 4.x with these changes (ROZ-415)