Skip to content

Commit

Permalink
Merge pull request #127 from 100mslive/1.12.0Release
Browse files Browse the repository at this point in the history
1.12.0 Release
  • Loading branch information
gzerad authored Jun 7, 2024
2 parents fe1d09b + 9030418 commit 54c4f8c
Show file tree
Hide file tree
Showing 15 changed files with 327 additions and 239 deletions.
78 changes: 39 additions & 39 deletions Example/HMSSDKExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Example/HMSSDKExample/Meeting/GrayscaleVideoPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class GrayscaleVideoPlugin: HMSVideoPlugin {
let ciContext = CIContext(options: nil)

override func process(_ frame: CVPixelBuffer) -> CVPixelBuffer {

let inputImage = CIImage(cvPixelBuffer: frame)

guard let outputImage = inputImage.grayscale else { return frame }
Expand Down
10 changes: 9 additions & 1 deletion Example/HMSSDKExample/Meeting/HMSSDKInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,15 @@ final class HMSSDKInteractor: HMSUpdateListener {
private func setupPlugins() {
if #available(iOS 15.0, *) {

virtualBackgroundPlugin = HMSVirtualBackgroundPlugin(backgroundImage: UIImage(named: "VB1"))
let vbPlugin = HMSVirtualBackgroundPlugin(backgroundImage: UIImage(named: "VBPortrait"))
vbPlugin.imageDataSource = { info in
if info.orientation == .down || info.orientation == .up {
return UIImage(named: "VBLandscape")!
}
return UIImage(named: "VBPortrait")!
}

virtualBackgroundPlugin = vbPlugin

videoFilterPlugin = HMSVideoFilterPlugin()
videoFilterPlugin?.activate()
Expand Down
268 changes: 141 additions & 127 deletions Example/HMSSDKExample/Meeting/Peers List/Base.lproj/PeersList.storyboard

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
import UIKit
import HMSSDK

final class PaginatedPeersListViewController: UIViewController {
final class PaginatedPeersListViewController: UIViewController, UISearchBarDelegate {

@IBOutlet private weak var participantsTitle: UIButton!

@IBOutlet private weak var table: UITableView!
@IBOutlet private weak var loadMoreButton: UIButton!
@IBOutlet private weak var searchBar: UISearchBar!

internal var roomName: String!

Expand All @@ -38,11 +39,40 @@ final class PaginatedPeersListViewController: UIViewController {
observeParticipants()

applySnapshot()

searchBar.delegate = self

iterator = meetingViewModel?.interactor?.hmsSDK?.getPeerListIterator(options: HMSPeerListIteratorOptions(limit: 10))
loadPeers()
}

func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
searchPeers(searchText)
}

var currentQuery: String = ""

func searchPeers(_ query: String) {
self.loadMoreButton.isHidden = true

currentQuery = query

if query.isEmpty {
self.peers = []
self.applySnapshot()
return
}

meetingViewModel?.interactor?.hmsSDK?.findPeersByName(query) { [weak self] foundPeers, error in
guard let self = self, let foundPeers = foundPeers else { return }

guard self.currentQuery == query else { return }

self.peers = foundPeers
self.applySnapshot()
}
}

func loadPeers() {
iterator?.next(completion: { [weak self] loadedPeers, error in
guard let self = self else { return }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,66 @@
"scale" : "1x",
"size" : "1024x1024"
},
{
"filename" : "16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "64.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "256.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "512.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "1024.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
},
{
"filename" : "48.png",
"idiom" : "watch",
Expand Down Expand Up @@ -225,6 +285,13 @@
"size" : "51x51",
"subtype" : "45mm"
},
{
"idiom" : "watch",
"role" : "appLauncher",
"scale" : "2x",
"size" : "54x54",
"subtype" : "49mm"
},
{
"filename" : "172.png",
"idiom" : "watch",
Expand Down Expand Up @@ -257,70 +324,17 @@
"subtype" : "45mm"
},
{
"filename" : "1024.png",
"idiom" : "watch-marketing",
"scale" : "1x",
"size" : "1024x1024"
},
{
"filename" : "16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "64.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "256.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "512.png",
"idiom" : "mac",
"idiom" : "watch",
"role" : "quickLook",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
"size" : "129x129",
"subtype" : "49mm"
},
{
"filename" : "1024.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
"idiom" : "watch-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "VBLandscape.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "VB1.jpg",
"filename" : "VBPortrait.jpg",
"idiom" : "universal",
"scale" : "1x"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform :ios, '13.0'

target 'HMSSDKExample' do
use_frameworks!
pod 'HMSSDK', '1.11.0'
pod 'HMSSDK', '1.12.0'
pod 'HMSHLSPlayerSDK', '0.0.2'
pod 'HMSNoiseCancellationModels', '1.0.0'
pod 'SwiftyBeaver', '1.9.5'
Expand Down
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PODS:
- HMSHLSPlayerSDK (0.0.2):
- HMSAnalyticsSDK (= 0.0.2)
- HMSNoiseCancellationModels (1.0.0)
- HMSSDK (1.10.0):
- HMSSDK (1.11.0):
- HMSAnalyticsSDK (= 0.0.2)
- HMSWebRTC (= 1.0.6169)
- HMSWebRTC (1.0.6169)
Expand All @@ -18,7 +18,7 @@ DEPENDENCIES:
- HMSBroadcastExtensionSDK (= 1.0.0)
- HMSHLSPlayerSDK (= 0.0.2)
- HMSNoiseCancellationModels (= 1.0.0)
- HMSSDK (= 1.10.0)
- HMSSDK (= 1.11.0)
- SwiftyBeaver (= 1.9.5)
- SwiftyGif
- Zip (= 2.1.2)
Expand All @@ -42,12 +42,12 @@ SPEC CHECKSUMS:
HMSBroadcastExtensionSDK: 0757d80497fddec3952858eb14892fb274f9f3c3
HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3
HMSNoiseCancellationModels: a3bda1405a16015632f4bcabd46ce48f35103b02
HMSSDK: fbbdebf673baba7f98f3fa13241b4249929ad681
HMSSDK: cdba5b12c080832d135af7bbc4ca6282b0e171ac
HMSWebRTC: 8f51ba33a0e505e17ebf3d7b37bcdca266751a13
SwiftyBeaver: 84069991dd5dca07d7069100985badaca7f0ce82
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67

PODFILE CHECKSUM: 7de09c8ad3a5b270348ad24aa0f0f3bc41d7190a
PODFILE CHECKSUM: 786b5f86cd85a7264fa72d75b4582f07b889c7b3

COCOAPODS: 1.15.2
6 changes: 3 additions & 3 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.11.0'
s.version = '1.12.0'
s.summary = 'HMS Videoconferencing iOS SDK'

s.description = <<-DESC
Expand All @@ -10,8 +10,8 @@ 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.11.0/HMSSDK.xcframework.zip',
:sha256 => '9942a1c85d5d2d05307693049b7769137cd03945b2a046577e07d508705a84e8'
s.source = { :http => 'https://github.com/100mslive/100ms-ios-sdk/releases/download/1.12.0/HMSSDK.xcframework.zip',
:sha256 => 'ad64662e9f2ba7e702d98619445ca2460adcc74451acd3050dbe6b5a2f32e558'
}
s.ios.deployment_target = '12.0'
s.vendored_frameworks = 'HMSSDK.xcframework'
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "HMSSDK",
url: "https://github.com/100mslive/100ms-ios-sdk/releases/download/1.11.0/HMSSDK.xcframework.zip",
checksum: "9942a1c85d5d2d05307693049b7769137cd03945b2a046577e07d508705a84e8"
url: "https://github.com/100mslive/100ms-ios-sdk/releases/download/1.12.0/HMSSDK.xcframework.zip",
checksum: "ad64662e9f2ba7e702d98619445ca2460adcc74451acd3050dbe6b5a2f32e558"
),
.binaryTarget(
name: "WebRTC",
Expand Down

0 comments on commit 54c4f8c

Please sign in to comment.