Skip to content

Using Media Chrome with multiple video elements and media-group #489

Answered by luwes
realflight1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! that should totally work, a custom video element will probably be the cleanest solution as it could be nested easily in media-controller as the media slot.

Have a look at https://github.com/muxinc/custom-video-element to help you out with that.
You're right that one video element would be the leader, the API calls would be made to that element and the rest should follow.
Let us know if you hit any snags.


I quickly hacked together an alternative solution without using a custom element here
https://codesandbox.io/s/media-group-quad-view-je3x0k?file=/index.html

The downside is that the control bar doesn't hide automatically as it's not nested in the media-controller.
It will need to be …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by realflight1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants