Airplay in Media Chrome + MuxPlayer + React #406
-
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. |
Beta Was this translation helpful? Give feedback.
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> |
Beta Was this translation helpful? Give feedback.
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: