NodeMedia / react-native-nodemediaclient

8 stars 3 forks source link

No audio in published video #1

Open Arjit0762 opened 6 months ago

Arjit0762 commented 6 months ago

Videos is working fine but there is no audio in my video

<NodePublisher ref={cameraRef} style={{ flex: 1 }} url={publishUrl} audioParam={{ codecid: NodePublisher.NMC_CODEC_ID_AAC, profile: NodePublisher.NMC_PROFILE_AUTO, samplerate: 48000, channels: 1, bitrate: 64 1000, }} videoParam={{ codecid: NodePublisher.NMC_CODEC_ID_H264, profile: NodePublisher.NMC_PROFILE_AUTO, width: 720, height: 1280, fps: 30, bitrate: 2000 1000, }} frontCamera={frontCamera} HWAccelEnable={true} denoiseEnable={false} torchEnable={torchEnable} keyFrameInterval={2} videoOrientation={NodePublisher.VIDEO_ORIENTATION_PORTRAIT} onEvent={(e, msg) => { console.log(e, msg) }} />

zomem commented 6 months ago

0.3.1 可以了,感谢大佬

illuspas commented 6 months ago

别急,等下还有个问题,用下个版本

Arjit0762 commented 6 months ago

感谢你的快速回复

我发现这个库很棒,但它有大约 30 秒的延迟。如果可以将其减少到最低限度,那将是非常有益的

illuspas commented 6 months ago

可能与前一个版本音频采样问题有关,使用0.3.2版本应该可以解决。

talhatsk commented 5 months ago

@Arjit0762 audio stops after few seconds, were you able to fix this?