Howdy folks.
So testing out v3 and after a good couple of hours troubleshooting and minor changes I am down to one component which is causing pre-render to fail.
I am using MuxPlayer (https://www.npmjs.com/package/@mux/mux-player) which is causing things to fail.
My reading of the docs makes me think that i can simply wrap this component in or do a check like isBrowser, and things will keep working. This works successfully for other parts of the page I am trying to render.
Unfortunately, it does not work for MuxPlayer.
Having the component commented out, but the import still available does not cause the fail.
Here is a look at the component
<MuxPlayer
// ref={vidRef}
streamType="on-demand"
style={{
height: '100%',
maxWidth: '100%',
width: '100%',
visibility: showplay ? 'hidden' : 'visible',
position: 'absolute',
top: '0',
}}
playbackId={playbackId}
preferMse
metadata={{
video_id: playbackId,
video_title: `${slug}`,
viewer_user_id: userId || null,
}}
onEnded={handleVideoEnd}
onPause={() => {
setShowplay((showplay) => !showplay)
}}
playsInline
/>
I have attempted to comment out props to get this working with no success. Anyone got any thoughts on where i would look next?
Ta