GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NodeMedia/NodeMediaClient-iOS

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
NodeMediaClient.xcframework
NodeMediaClient.xcframework
 
 
Sources/NodeMediaClientTarget
Sources/NodeMediaClientTarget
 
 
docs
docs
 
 
.gitignore
.gitignore
 
 
ChangeLog.md
ChangeLog.md
 
 
NodeMediaClient.podspec
NodeMediaClient.podspec
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
context7.json
context7.json
 
 

Repository files navigation

NodeMediaClient

A simple, high-performance, low-latency live streaming SDK.

Features

Play

  • RTMP/RTSP/HLS/HTTP/KMP/UDP protocols
  • FLV/MP4/fMP4/MKV/MPEGTS demuxers
  • H264/H265 video decoders
  • AAC/OPUS/G711/SPEEX/NELLYMOSER audio decoders
  • Audio and video content decryption
  • Hardware Acceleration
  • Low latency
  • Delay elimination
  • Compatible with flv_extension_id and Enhanced-Rtmp standards

Publish

  • RTMP/RTSP/HLS/HTTP/KMP/UDP protocols
  • FLV/MPEGTS muxers
  • H264/H265 video encoders
  • AAC audio encoder
  • Audio and video content encryption
  • Hardware Acceleration
  • Arbitrary video resolution
  • Multiple output
  • Compatible with flv_extension_id and Enhanced-Rtmp standards

Install

You want to add pod 'NodeMediaClient', '~> 4.1' similar to the following to your Podfile:

target 'MyApp' do
  pod 'NodeMediaClient', '~> 4.1'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Play Live Streaming

1. import header

#import "ViewController.h"
#import <NodeMediaClient/NodeMediaClient.h>
#import <AVFoundation/AVFoundation.h>

2. define object

@interface ViewController ()
@property (nonatomic, strong) NodePlayer *np;
@end

3.Play the stream

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _np = [[NodePlayer alloc] init];
    [_np attachView:self.view];
    [_np setScaleMode:1];
    [_np start:@"rtmp://192.168.0.2/live/demo"];
}

- (void)viewWillDisappear:(BOOL)animated {
    [_np stop];
    [_np detachView];
}
@end

Publish Live Streaming

1. Request more permissions

Please confirm that the description of the 'Privacy - Microphone Usage Description' and the 'Privacy - Camera Usage Description' is added in info.plist .

2. Import header

#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>
#import <NodeMediaClient/NodeMediaClient.h>

3. Define object

@interface ViewController ()
@property (nonatomic, strong) NodePublisher *np;
@end

4.Start Publish

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _np = [[NodePublisher alloc] init];
    [_np setAudioParamWithCodec:NMC_CODEC_ID_AAC profile:NMC_PROFILE_AUTO samplerate:48000 channels:2 bitrate:64*1000];
    [_np setVideoOrientation:VIDEO_ORIENTATION_PORTRAIT];
    [_np setVideoParamWithCodec:NMC_CODEC_ID_H264 profile:NMC_PROFILE_AUTO width:480 height:854 fps:30 bitrate:1000*1000];
    [_np attachView:self.view];
    [_np openCamera:true];
    [_np start:@"rtmp://192.168.0.2/live/demo"];
    // Do any additional setup after loading the view.
}

- (void)viewWillDisappear:(BOOL)animated {
    [_np stop];
    [_np closeCamera];
    [_np detachView];
}
@end

Demo

https://cdn.nodemedia.cn/NodeMediaClient/NodeMediaClient-iOSDemo.zip

License

A commercial license is required.
https://www.nodemedia.cn/product/nodemediaclient-iOS/

Business & Technical service

  • QQ: 281269007
  • Email: [email protected]

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.