Replies: 5 comments 7 replies
-
Not sure about changes/breaking changes implications, but I definitely found that having some things on provider and some on media to be confusing. Would rather have it all in one place if possible and without breaking changes, but that's just because I don't want to refactor again :) |
Beta Was this translation helpful? Give feedback.
-
How would |
Beta Was this translation helpful? Give feedback.
-
On the Dx point of view only, I did find the current api with both What would be the implication for the bundle size, If I don't need the audioProvider would it still be imported as it is part of vds-media ? |
Beta Was this translation helpful? Give feedback.
-
How would you control preload strategy? Having an option to load only metadata for example is crucial to us because we do not have posters (hoster limitation) and a lot of video players on one site. How would you handle different sources or quality (e.g. 720p, 1080p,4k) woth your approach? |
Beta Was this translation helpful? Give feedback.
-
This would be great for multi-media-type projects, where different types of media could be loaded at any time. But how will the detection work? +1 for this, great idea. |
Beta Was this translation helpful? Give feedback.
-
👋
I wanted to put something that I've been considering today up for discussion. I've been looking at the boilerplate for our media setup and I realized it looks a little strange now since we lifted up most media state to
<vds-media>
. In particular,src
and a few provider specific APIs are left on the provider element.I was wondering how most would feel if we instead pulled
src
up to<vds-media>
and possibly dropped provider elements like so:Why?
<vds-media>
- makes it simpler as there's no disconnect between media and provider on the surface.src
which provider to dynamically load and set the provider up for you. One less step with respect to considering a provider and how to handle switching on source change (I've been asked many times). Devs could even pass in multiple media sources via an array and we could detect based on various options which we can call a source selection strategy (this could also be customized).How?
Without Breaking Changes
A new base interface for providers that's not an element called
MediaProvider
, then we'll have stuff likeAudioProvider
,VideoProvider
, and so on.The hard part is figuring out how to approach the docs but we could move current "Usage" sections on provider pages down and call it "Element".
With Breaking Changes
We drop all provider elements and simply have new provider types:
The
MediaProvider
interface might look something like this:Options Summary
You can vote with a reaction like so:
Beta Was this translation helpful? Give feedback.
All reactions