You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Vidstack player only supports built-in iframe providers like YouTube, Vimeo etc. There's no way to add custom iframe video providers by extending the EmbedProvider class, which limits the extensibility of the player.
Describe:
Add support for custom iframe providers by allowing users to extend the EmbedProvider class. This would work similar to how the built-in YouTube provider is implemented.
This would enable users to:
Add support for any iframe-based video platform
Define custom URL patterns and embed URL formats
Implement custom logic for extracting video IDs
Register custom providers with the player
Alternatives:
Use <iframe> element directly - This works but loses the benefits of Vidstack's provider system like unified API and events.
Fork and modify the core player - Not sustainable as it requires maintaining a separate codebase.
Anything Else?
This would greatly enhance Vidstack's extensibility and make it more appealing for projects that need to support custom video platforms.
Technical Notes:
Should follow similar patterns as existing providers (YouTube, Vimeo)
Need to consider security implications of custom iframe sources
Should document the provider interface thoroughly
The text was updated successfully, but these errors were encountered:
Related Problem:
Currently, Vidstack player only supports built-in iframe providers like YouTube, Vimeo etc. There's no way to add custom iframe video providers by extending the
EmbedProvider
class, which limits the extensibility of the player.Describe:
Add support for custom iframe providers by allowing users to extend the
EmbedProvider
class. This would work similar to how the built-in YouTube provider is implemented.This would enable users to:
Alternatives:
Use
<iframe>
element directly - This works but loses the benefits of Vidstack's provider system like unified API and events.Fork and modify the core player - Not sustainable as it requires maintaining a separate codebase.
Anything Else?
This would greatly enhance Vidstack's extensibility and make it more appealing for projects that need to support custom video platforms.
Technical Notes:
The text was updated successfully, but these errors were encountered: