-
Notifications
You must be signed in to change notification settings - Fork 1
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
Starting point #1
Comments
Hey 👋 I Don't think it should matter if it's singular. Might as well load the javascript if One issue would be that I doubt this would be enqueued in Gutenberg editor, so the person would need to preview or visit a saved version to reason about the end look & feel. I Think that is a step-backward. What are your goals for this? |
Oh, it also needs a license. Is everything under GPL2+ an issue? |
Right, so I got interested it all this, because one particular client of mine needed a specifically styled player. No matter which option we choose the end result should let people style the players in different ways, preferably via settings inside Gutenberg (and see the styles applied in the editor too). At first we can aim for the audio player because this is easier. Or maybe it's better to plan it beforehand for all players ? As you can see I myself have more questions than answers. I am willing to put some time, so maybe you can tell me what would be the most useful thing for the wp community and we would try to met these needs? Or we can aim at this as a podcasting solution for wp? I don't really know much about licensing, I always put GPLv3 in my plugins, but I may be doing it wrong. The singular check I just copied from the code I have written for my client. Obviously it's not mandatory. |
Understood. To be clear I'm not interested in their specific needs.
YMMV, but I would suggest using something existing. There are other player solutions besides mediaelement.js, but 120kb is not so much considering the media will likely be MB in size per-file, per-format.
I Would encourage perhaps making that your own long-term goal and one that is larger than the plugin. I Can share with you some OpenSource repo's I've worked on to get filters to allow other plugins to extend, avoiding hot-takes, but ultimately. If you try to please everyone. You might wind up taking a lot of your time helping noone.
Again, eat the elephant in small-bites. This is two large, and not defined, designed or otherwise goals.
Aim for a single player-type. MediaElement supports many, but it's best to anchor yourself on one thing at a time. Who other than a commercial client can test, and give honest feedback?
Humility is golden. I Love that this is your outlook.
I Can't speak for the entire WordPress community, but if we can both come up with questions, designs and working prototypes, I am sure they will be forthcoming with opinions.
Best to ask people with a need about that. You could ask your client. Have two people who have asked for changes to a free plugin, where they have asked for an editor. I've said I'll see about it when I have time as these are not currently framed as commercial opportunities and I need to prioritize spending time on potentially endless projects.
Please don't take any of my questions or responses as "You're doing it wrong". Even if I said that, I didn't mean it. Licensing is important to have a separate
Is there a way to deliver something that you can customize for your client using a sister-plugin, so that a core OpenSource work would not need to be, concerned with the specifics of their organization? I'll make a LICENSE PR in the mean time. |
The thing I made for my client I have written inside their theme, I have finished that part yesterday, so this project is a separate thing. I have searched for some js player libraries, I found two others we might want to look at: If we are going to make just a simple thingy which enqueues the player and embeds it on the page with some filters then okay. So what we need:
|
How about we have a default config for whichever player we choose to bind to, which we can switch using hooks, by just using How about instead of making decisions about where to embed it. We also use a filter to specify an array of selectors, with default to With just these two things, you can have a remarkably small core-plugin, that enables you to use whichever player you choose, and iterate on those decisions later. RE: CSS, I think just enqueuing with a filter, also lets us... Change our minds and learn later. Btw anything that uses NPM just means we get a build-step before releasing to plugin directory. It shouldn't affect WordPress as webpack or similar can be setup to bundle dependencies into one or more files. MediaElement.js certainly supports this. |
@Lewiscowles1986
Hi so I created a repo and added some boilerplate
The text was updated successfully, but these errors were encountered: