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

Svelte Video Component #377

Open
MashdorDev opened this issue Feb 26, 2024 · 2 comments
Open

Svelte Video Component #377

MashdorDev opened this issue Feb 26, 2024 · 2 comments

Comments

@MashdorDev
Copy link

Is your feature request related to a problem? Please describe.
Yes, integrating video content is currently cumbersome.

Describe the solution you'd like
Implement a Svelte-based video component for Primo, enabling easy video integration with customizable options like source URLs, autoplay, loop, and control visibility.

Describe alternatives you've considered
Using custom HTML blocks, which is less efficient.

Additional context
A video component would enrich site content and user engagement, seamlessly integrating with Svelte for dynamic and efficient video handling.

@rallisf1
Copy link
Contributor

Primo's component library and templates are more of a Proof of Concept, rather than a toolkit to build your websites. If you are not in a position to write your own components then I'm afraid Primo is not for you (yet).

Keep in mind that you can use most svelte and vanilla libraries, like plyr or mux-video, to help you build your component, although the less dependendies the better.

P.S. I haven't used any libraries for video playback as Youtube's iframe and standard HTML5 video suffice for my needs.

P.S.2. Primo uses the TipTap editor, which has a Youtube extension. The problem is that the editor's configuration is global for all websites you build with Primo. This is not ideal; as you cannot change the Youtube's player configuration, in this instance, per website. That's the reason Primo uses so few TipTap extensions.

@MashdorDev
Copy link
Author

Hey @rallisf1, I appreciate your response. I have added a video as an iframe to my project. Would you mind if I made a proof of concept for the video component?

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

No branches or pull requests

2 participants