This project is the react-native packaging of NodeMediaClient-Android and NodeMediaClient-iOS SDK.
Complete live publish and play functions, providing the exact same API call. You can publish two platforms just by developing one set of programs.
README
yarn add nodemedia-client-with-zoom
cd ios
pod install
iOS Setup To use react-native-nodemediaclient in your iOS project, add the following line to your Podfile:
pod 'NodeMediaClient', :path => '../node_modules/nodemedia-client-with-zoom/NodeMediaClient'
import { NodeCameraWithZoom } from 'nodemedia-client-with-zoom';
const cameraProps = { cameraId: 1, cameraFrontMirror: true };
const audioProps = { bitrate: 32000, profile: 1, samplerate: 48000 };
const videoProps = {
fps: 30,
preset: 4,
profile: 1,
bitrate: 900000,
videoFrontMirror: true,
};
return (
<NodeCameraWithZoom
outputUrl="rtmp://192.168.0.10/live/stream"
cameraProps={cameraProps}
audioProps={audioProps}
videoProps={videoProps}
style={{ height: 400 }} // Adjust style as needed
/>
);