Which Mux Elements/Packages would you like a new feature for?
🎥 Describe the feature you'd like to request
For high priority mux metadata, it should be easy to set these values via attributes. In addition, if someone is using the playback-id attribute, we should default the video_id metadata to it (unless it's been explicitly provided).
💻 Describe the use cases the feature will solve
Make it simple to add any high priority metadata, since these are the values we want to encourage people to use to help them take full advantage of mux data aggregation.
⭐ Describe the solution you'd like to see
- If
metadata-video-id attribute is present, use it as the video_id metadata
- If
metadata-video-id is not present but metadata object is set before load() and has a video_id, use it as the video_id metadata (the same is true for any metadata-[high-priority-metadata-name] attribute)
- If neither are present but
playback-id is present, use it as the video_id metadata
🔄 Describe alternatives or workarounds you've considered
- Use a script to
createElement('mux-video') then set metadata then attach to the DOM.
Which Mux Elements/Packages would you like a new feature for?
🎥 Describe the feature you'd like to request
For high priority mux metadata, it should be easy to set these values via attributes. In addition, if someone is using the
playback-idattribute, we should default thevideo_idmetadata to it (unless it's been explicitly provided).💻 Describe the use cases the feature will solve
Make it simple to add any high priority metadata, since these are the values we want to encourage people to use to help them take full advantage of mux data aggregation.
⭐ Describe the solution you'd like to see
Add
metadata-[high-priority-metadata-name]attributes to<mux-video />:metadata-video-id(corresponds tovideo_id)metadata-video-title(corresponds tovideo_title)metadata-viewer-user-id(corresponds toviewer_user_id)Add
video_iddefaulting support:metadata-video-idattribute is present, use it as thevideo_idmetadatametadata-video-idis not present butmetadataobject is set beforeload()and has avideo_id, use it as thevideo_idmetadata (the same is true for anymetadata-[high-priority-metadata-name]attribute)playback-idis present, use it as thevideo_idmetadata🔄 Describe alternatives or workarounds you've considered
createElement('mux-video')then set metadata then attach to the DOM.