A simple, fast, free live streaming SDK.
source 'https://github.com/CocoaPods/Specs.git'
target 'QLive' do
pod 'NodeMediaClient'
endpod install#import <NodeMediaClient/NodeMediaClient.h>
......
@property (strong,nonatomic) NodePlayer *np;
......
// start play live stram
_np = [[NodePlayer alloc] init];
[_np setPlayerView:self.view];
[_np setInputUrl:@"rtmp://192.168.0.10/live/stream"];
[_np start];
......
// stop play live stream
[_np stop];
Please confirm that the description of the 'Privacy - Microphone Usage Description' and the 'Privacy - Camera Usage Description' is added in info.plist .
#import <NodeMediaClient/NodeMediaClient.h>
......
@property (strong, nonatomic) NodePublisher *np;
......
// start preview and push live stream
_np = [[NodePublisher alloc] init];
[_np setCameraPreview:self.view cameraId:CAMERA_FRONT frontMirror:YES];
[_np setAudioParamBitrate:32000 profile:AUDIO_PROFILE_HEAAC];
[_np setVideoParamPreset:VIDEO_PPRESET_16X9_360 fps:15 bitrate:500000 profile:VIDEO_PROFILE_MAIN frontMirror:NO];
[_np setOutputUrl:@"rtmp://192.168.0.10/live/stream"];
[_np startPreview];
[_np start];
......
// stop preview and push live stream
[_np stopPreview];
[_np stop];
- Hardware acceleration video Decoder & Encoder
- Microphone denoise
- Smooth beautiful skin
Please contact business service email : service@nodemedia.cn