Skip to content

Commit

Permalink
Merge pull request #120 from 100mslive/1.7.0Release
Browse files Browse the repository at this point in the history
1.7.0 Release
  • Loading branch information
gzerad authored Mar 15, 2024
2 parents 0f8cafe + 4f74e1a commit 3dd8519
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 67 deletions.
106 changes: 53 additions & 53 deletions Example/HMSSDKExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion Example/HMSSDKExample/Meeting/HMSSDKInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
import HMSSDK
import HMSAnalyticsSDK
import SwiftyBeaver
import HMSNoiseCancellationModels

final class HMSSDKInteractor: HMSUpdateListener {

Expand Down Expand Up @@ -84,7 +85,7 @@ final class HMSSDKInteractor: HMSUpdateListener {
var audioMixerSource: HMSAudioMixerSource?
let audioFilePlayerNode = HMSAudioFilePlayerNode()


var noiseCancellationPlugin: HMSNoiseCancellationPlugin?

private func setupSDK() {
hmsSDK = HMSSDK.build { sdk in
Expand All @@ -107,6 +108,13 @@ final class HMSSDKInteractor: HMSUpdateListener {
audioSettingsBuilder.initialMuteState = UserDefaults.standard.publishAudio ? .unmute : .mute
audioSettingsBuilder.audioSource = self.audioSource(for: sdk)

if let pathForNCModel = HMSNoiseCancellationModels.path(for: .smallFullBand) {

self.noiseCancellationPlugin = HMSNoiseCancellationPlugin(modelPath: pathForNCModel, initialState: .disabled)
}

audioSettingsBuilder.noiseCancellationPlugin = self.noiseCancellationPlugin

if UserDefaults.standard.bool(forKey: Constants.musicMode) {
audioSettingsBuilder.audioMode = .music
}
Expand Down
18 changes: 18 additions & 0 deletions Example/HMSSDKExample/Meeting/MeetingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ final class MeetingViewController: UIViewController, UIDocumentPickerDelegate {

let isVBActivated = UserDefaults.standard.bool(forKey: "virtualBackgroundPluginEnabled")

let isNCActivated = self.interactor.noiseCancellationPlugin?.isEnabled()

let isLocalAudioFilePlaybackEnabled = AudioSourceType(rawValue: UserDefaults.standard.integer(forKey: Constants.defaultAudioSource)) == .audioMixer

var actions = [
Expand Down Expand Up @@ -557,6 +559,22 @@ final class MeetingViewController: UIViewController, UIDocumentPickerDelegate {
controller.view.backgroundColor = .clear
self?.present(controller, animated: true, completion: nil)

self?.updateSettingsButton()
}
])
}

if let noiseCancellationPlugin = interactor.noiseCancellationPlugin, noiseCancellationPlugin.isNoiseCancellationAvailable {
actions.append(contentsOf:
[UIAction(title: "Enable noise cancellation",
image: UIImage(systemName: "waveform.badge.mic"),
state: noiseCancellationPlugin.isEnabled() ? .on : .off) { [weak self] _ in
if !noiseCancellationPlugin.isEnabled() {
try? noiseCancellationPlugin.enable()
}
else {
try? noiseCancellationPlugin.disable()
}
self?.updateSettingsButton()
}])
}
Expand Down
3 changes: 2 additions & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ platform :ios, '13.0'

target 'HMSSDKExample' do
use_frameworks!
pod 'HMSSDK', '1.6.0'
pod 'HMSSDK', '1.7.0'
pod 'HMSHLSPlayerSDK', '0.0.2'
pod 'HMSNoiseCancellationModels', '1.0.0'
pod 'SwiftyBeaver', '1.9.5'
pod 'Zip', '2.1.2'
pod 'Eureka', '5.4.0'
Expand Down
12 changes: 8 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ PODS:
- HMSBroadcastExtensionSDK (1.0.0)
- HMSHLSPlayerSDK (0.0.2):
- HMSAnalyticsSDK (= 0.0.2)
- HMSSDK (1.5.1):
- HMSNoiseCancellationModels (1.0.0)
- HMSSDK (1.6.0):
- HMSAnalyticsSDK (= 0.0.2)
- HMSWebRTC (= 1.0.5116)
- HMSWebRTC (1.0.5116)
Expand All @@ -16,7 +17,8 @@ DEPENDENCIES:
- Eureka (= 5.4.0)
- HMSBroadcastExtensionSDK (= 1.0.0)
- HMSHLSPlayerSDK (= 0.0.2)
- HMSSDK (= 1.5.1)
- HMSNoiseCancellationModels (= 1.0.0)
- HMSSDK (= 1.6.0)
- SwiftyBeaver (= 1.9.5)
- SwiftyGif
- Zip (= 2.1.2)
Expand All @@ -27,6 +29,7 @@ SPEC REPOS:
- HMSAnalyticsSDK
- HMSBroadcastExtensionSDK
- HMSHLSPlayerSDK
- HMSNoiseCancellationModels
- HMSSDK
- HMSWebRTC
- SwiftyBeaver
Expand All @@ -38,12 +41,13 @@ SPEC CHECKSUMS:
HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7
HMSBroadcastExtensionSDK: 0757d80497fddec3952858eb14892fb274f9f3c3
HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3
HMSSDK: ab468de17246fcc8d6315ea490e9d9b30431d6b3
HMSNoiseCancellationModels: a3bda1405a16015632f4bcabd46ce48f35103b02
HMSSDK: 8bb7d5c9d593c4c1a15bdd28dbbc6dbc9a46c8e8
HMSWebRTC: ae54e9dd91b869051b283b43b14f57d43b7bf8e1
SwiftyBeaver: 84069991dd5dca07d7069100985badaca7f0ce82
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67

PODFILE CHECKSUM: cb841b0d546d28b900306e01eacea825c9b497b7
PODFILE CHECKSUM: 7bbbe7fb44adb3a8f87ffba904820bf155e1d0da

COCOAPODS: 1.12.1
8 changes: 4 additions & 4 deletions HMSSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'HMSSDK'
s.version = '1.6.0'
s.version = '1.7.0'
s.summary = 'HMS Videoconferencing iOS SDK'

s.description = <<-DESC
Expand All @@ -10,13 +10,13 @@ TODO: Add long description of the pod here.
s.homepage = 'https://github.com/100mslive/100ms-ios-sdk/'
s.license = { :type => 'MIT'}
s.author = { 'Dmitry Fedoseyev' => '[email protected]', 'Yogesh Singh' => '[email protected]', 'Pawan Dixit' => '[email protected]'}
s.source = { :http => 'https://github.com/100mslive/100ms-ios-sdk/releases/download/1.6.0/HMSSDK.xcframework.zip',
:sha256 => '65f11ca875748de3b04ada78d25fa274f5a0fa2ea50f5780a90bdfb605130b5b'
s.source = { :http => 'https://github.com/100mslive/100ms-ios-sdk/releases/download/1.7.0/HMSSDK.xcframework.zip',
:sha256 => '829beeb01891b86f79a19125499a8087631da5b8fa0aee1ef4567d0449cf748f'
}
s.ios.deployment_target = '12.0'
s.vendored_frameworks = 'HMSSDK.xcframework'

s.dependency 'HMSWebRTC', '1.0.5116'
s.dependency 'HMSWebRTC', '1.0.5118'
s.dependency 'HMSAnalyticsSDK', '0.0.2'

end
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ let package = Package(
targets: [
.binaryTarget(
name: "HMSSDK",
url: "https://github.com/100mslive/100ms-ios-sdk/releases/download/1.6.0/HMSSDK.xcframework.zip",
checksum: "65f11ca875748de3b04ada78d25fa274f5a0fa2ea50f5780a90bdfb605130b5b"
url: "https://github.com/100mslive/100ms-ios-sdk/releases/download/1.7.0/HMSSDK.xcframework.zip",
checksum: "829beeb01891b86f79a19125499a8087631da5b8fa0aee1ef4567d0449cf748f"
),
.binaryTarget(
name: "WebRTC",
url: "https://github.com/100mslive/webrtc-ios/releases/download/1.0.5116/WebRTC.xcframework.zip",
checksum: "5f38579bb743b089d95017fa56dc76f8e3e440dbdd56061db04c26448262cfee"
url: "https://github.com/100mslive/webrtc-ios/releases/download/1.0.5118/WebRTC.xcframework.zip",
checksum: "f80dde0250940647633340627f1a2aec83d8d53889e79ab34d0d168bcb16d253"
),
.target(name: "HMSSDKDependencies", dependencies: ["HMSAnalyticsSDK"], path: "dependencies")
]
Expand Down

0 comments on commit 3dd8519

Please sign in to comment.