mux-node-sdk icon indicating copy to clipboard operation
mux-node-sdk copied to clipboard

Issue with new "react-native-nodemediaclient" version

Open safee-cases opened this issue 5 months ago • 0 comments

Hey everybody !

I used this old version of this guide to handle livestream video on my app: [https://www.mux.com/blog/live-streaming-with-react-native]

Unfortunately the 'react-native-nodemediaclient' version used is deprecated. I updated it to the last version and replace with new syntax:

Before update I used NodeCameraView

  <NodeCameraView
    style={styles.cameraBack}
    ref={cameraViewRef}
    outputUrl={url + streamKey}
    camera={config.cameraConfig}
    audio={config.audioConfig}
    video={config.videoConfig}
     autopreview
     audioEnable={store.isMuted}
  />

After update I'm now using NodePublisher

<NodePublisher
     ref={cameraViewRef}
     style={styles.cameraBack}
     url={url + streamKey}
     camera={config.cameraConfig}
     audioParams={config.audioConfig}
      videoParams={config.videoConfig}
       autopreview
      audioEnable={store.isMuted}
/>

With 'NodePublisher' I fixed the issue where my livestream didn't work anymore but I got now an issue with Mux because my stream don't upload to mux anymore so I can't replay it on my app

Is anyone is on the same situation than me and found some solutions ? 😄

safee-cases avatar Mar 07 '24 10:03 safee-cases