Skip to content

Commit

Permalink
Merge pull request #132 from 100mslive/1.16.0Release
Browse files Browse the repository at this point in the history
1.16.0 Release
  • Loading branch information
gzerad authored Aug 13, 2024
2 parents fa56db9 + 7382055 commit c32d74c
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 66 deletions.
96 changes: 48 additions & 48 deletions Example/HMSSDKExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Example/HMSSDKExample/Meeting/MeetingViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ final class MeetingViewModel: NSObject,

if !localVideoTrack.isMute() {

actions?.append(UIAction(title: "Toggle Torch", image: UIImage(systemName: "flashlight.on.fill")) { _ in
actions?.append(UIAction(title: "Toggle Torch", image: UIImage(systemName: "flashlight.on.fill")) { [weak localVideoTrack] _ in

localVideoTrack.modifyCaptureDevice({ device in
localVideoTrack?.modifyCaptureDevice({ device in
guard let device = device else { return }
guard device.isTorchModeSupported(.on) else {
self.delegate?.presentAlert(with: "Not supported", message: "Torch is not supported on this camera")
Expand All @@ -546,17 +546,17 @@ final class MeetingViewModel: NSObject,
})
})

actions?.append(UIAction(title: "Zoom camera in/out", image: UIImage(systemName: "plus.magnifyingglass")) { _ in
actions?.append(UIAction(title: "Zoom camera in/out", image: UIImage(systemName: "plus.magnifyingglass")) { [weak localVideoTrack] _ in

localVideoTrack.modifyCaptureDevice({ device in
localVideoTrack?.modifyCaptureDevice({ device in
guard let device = device else { return }
device.videoZoomFactor = device.videoZoomFactor == 1.0 ? 2.0 : 1.0
})
})

actions?.append(UIAction(title: "Take photo", image: UIImage(systemName: "camera.fill")) { _ in
actions?.append(UIAction(title: "Take photo", image: UIImage(systemName: "camera.fill")) { [weak localVideoTrack] _ in

localVideoTrack.captureImageAtMaxSupportedResolution(withFlash: false, completion: { image in
localVideoTrack?.captureImageAtMaxSupportedResolution(withFlash: false, completion: { image in
if let image = image {
self.delegate?.presentSheet(with: image)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ final class PeersListViewController: UIViewController {

func makeDataSource() -> DataSource? {

let dataSource = DataSource(tableView: table) { (table, indexPath, peer) -> UITableViewCell? in
let dataSource = DataSource(tableView: table) { [weak self] (table, indexPath, peer) -> UITableViewCell? in

guard let cell = table.dequeueReusableCell(withIdentifier: "Cell",
for: indexPath) as? PeersListTableViewCell else {
return nil
}

self.update(cell, for: peer)
self?.update(cell, for: peer)

return cell
}
Expand Down
4 changes: 4 additions & 0 deletions Example/HMSSDKExample/Meeting/VideoCollectionViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ final class VideoCollectionViewCell: UICollectionViewCell {

if let localAudioStats = stats as? HMSLocalAudioStats {
components += ["Bitrate (Audio) \(String(format: "%.1f Kb/s", localAudioStats.bitrate))"]
components += ["Packets Lost (Audio) \(localAudioStats.packetsLost)"]
components += ["Jitter (Audio) \(localAudioStats.jitter)"]
} else if let localVideoStats = stats as? [HMSLocalVideoStats] {
for layerStats in localVideoStats {
if let layerId = layerStats.simulcastLayerId?.uintValue, let layerType = HMSSimulcastLayer(rawValue: layerId), let layerName = layerNameMap[layerType] {
Expand All @@ -278,6 +280,8 @@ final class VideoCollectionViewCell: UICollectionViewCell {
let activeMark = qualityLimitations.reason == .other ? "> " : ""
components += ["\(activeMark)Limited by other \(String(format: "%.1f", qualityLimitations.other))"]
}
components += ["Packets Lost \(layerStats.packetsLost)"]
components += ["Jitter \(layerStats.jitter)"]
components += [" "]
}
} else if let remoteAudioStats = stats as? HMSRemoteAudioStats {
Expand Down
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.15.0'
pod 'HMSSDK', '1.16.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.14.1):
- HMSSDK (1.15.0):
- HMSAnalyticsSDK (= 0.0.2)
- HMSWebRTC (= 1.0.6170)
- HMSWebRTC (1.0.6170)
Expand All @@ -18,7 +18,7 @@ DEPENDENCIES:
- HMSBroadcastExtensionSDK (= 1.0.0)
- HMSHLSPlayerSDK (= 0.0.2)
- HMSNoiseCancellationModels (= 1.0.0)
- HMSSDK (= 1.14.1)
- HMSSDK (= 1.15.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: 389e692c315efd6abe1932e2dab4859ebb5cd60d
HMSSDK: fc3d2141c654e9fdca7f27c290c17b6b61b9dc92
HMSWebRTC: b5ffaf5d6133ae2a4c841beaf1e5e4fe06d0fb07
SwiftyBeaver: 84069991dd5dca07d7069100985badaca7f0ce82
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67

PODFILE CHECKSUM: 014e726e7c539bf2fd7b24d5543d7a4887ea7810
PODFILE CHECKSUM: acefb94075347ba192f0679c56e35f4402bdba7b

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.15.0'
s.version = '1.16.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.15.0/HMSSDK.xcframework.zip',
:sha256 => '73f15409b76dc2a7b677027ede12fb5711f6222931f690b2701c6d86e0b3092b'
s.source = { :http => 'https://github.com/100mslive/100ms-ios-sdk/releases/download/1.16.0/HMSSDK.xcframework.zip',
:sha256 => '50ff59448dc57d7611dec919b8e46196e091f9b4de70145c37882c6dd116f2a1'
}
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.15.0/HMSSDK.xcframework.zip",
checksum: "73f15409b76dc2a7b677027ede12fb5711f6222931f690b2701c6d86e0b3092b"
url: "https://github.com/100mslive/100ms-ios-sdk/releases/download/1.16.0/HMSSDK.xcframework.zip",
checksum: "50ff59448dc57d7611dec919b8e46196e091f9b4de70145c37882c6dd116f2a1"
),
.binaryTarget(
name: "WebRTC",
Expand Down

0 comments on commit c32d74c

Please sign in to comment.