Skip to content

Airplay in Media Chrome + MuxPlayer + React #406

Answered by dylanjha
KushwahaVikashJ asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @KushwahaVikashJ , thanks for the question

I'm not sure if this is what you're running into, but: <MuxPlayer /> already uses media chrome under the hood to build the UI, so you wouldn't want to do this:

<media-controller>
  <MuxPlayer slot="media" />
</media-controller>

<MuxPlayer /> is meant to be used standalone. To use Media Chrome with a Mux source, use <mux-video> (or the react equivalent <MuxVideo />:

So in your React app you can do:

<media-controller>
  <MuxVideo slot="media" />
</media-controller>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by heff
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