Airplay in Media Chrome + MuxPlayer + React #406
Answered
by
dylanjha
KushwahaVikashJ
asked this question in
Q&A
|
media-chrome (media-airplay-button) button is not working in mux-player-react for safari browser. I'm attaching a codesandbox example for same : https://codesandbox.io/s/billowing-morning-qb9wvh?file=/src/Video.js please respond for the same. |
Answered by
dylanjha
Jan 4, 2023
Replies: 1 comment
|
Hi @KushwahaVikashJ , thanks for the question I'm not sure if this is what you're running into, but: <media-controller>
<MuxPlayer slot="media" />
</media-controller>
So in your React app you can do: <media-controller>
<MuxVideo slot="media" />
</media-controller> |
0 replies
Answer selected by
heff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:<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: