Skip to content

Commit fe01a39

Browse files
authored
[Fix]Camera and Mic prompts appearing when not necessary (#1005)
1 parent 5c9a37e commit fe01a39

File tree

9 files changed

+563
-94
lines changed

9 files changed

+563
-94
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,6 @@ buildServer.json
128128
# xcode-build-server files
129129
buildServer.json
130130
.compile
131+
132+
# zed
133+
.zed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
99

1010
### 🐞 Fixed
1111
- Pass the missing rejection reason to API calls. [#1003](https://github.com/GetStream/stream-video-swift/pull/1003)
12+
- Mic and camera prompts showing up when not necessary. [#1005](https://github.com/GetStream/stream-video-swift/pull/1005)
1213

1314
# [1.37.0](https://github.com/GetStream/stream-video-swift/releases/tag/1.37.0)
1415
_November 28, 2025_

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let package = Package(
2323
],
2424
dependencies: [
2525
.package(url: "https://github.com/apple/swift-protobuf.git", exact: "1.30.0"),
26-
.package(url: "https://github.com/GetStream/stream-video-swift-webrtc.git", exact: "137.0.52")
26+
.package(url: "https://github.com/GetStream/stream-video-swift-webrtc.git", exact: "137.0.54")
2727
],
2828
targets: [
2929
.target(

Sources/StreamVideo/Generated/SystemEnvironment+Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ extension SystemEnvironment {
99
/// A Stream Video version.
1010
public static let version: String = "1.38.0-SNAPSHOT"
1111
/// The WebRTC version.
12-
public static let webRTCVersion: String = "137.0.52"
12+
public static let webRTCVersion: String = "137.0.54"
1313
}

Sources/StreamVideo/WebRTC/v2/WebRTCAuthenticator.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ struct WebRTCAuthenticator: WebRTCAuthenticating {
9595
if audioStore.state.currentRoute.isExternal, result.speakerOn {
9696
result = result.withUpdatedSpeakerState(false)
9797
}
98+
99+
if result.audioOn, !response.ownCapabilities.contains(.sendAudio) {
100+
result = result.withUpdatedAudioState(false)
101+
}
102+
103+
if result.videoOn, !response.ownCapabilities.contains(.sendVideo) {
104+
result = result.withUpdatedVideoState(false)
105+
}
106+
98107
return result
99108
}()
100109

StreamVideo-XCFramework.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pod::Spec.new do |spec|
2424

2525
spec.prepare_command = <<-CMD
2626
mkdir -p Frameworks/
27-
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.52/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
27+
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.54/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
2828
unzip -o Frameworks/StreamWebRTC.zip -d Frameworks/
2929
rm Frameworks/StreamWebRTC.zip
3030
CMD

StreamVideo.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Pod::Spec.new do |spec|
2525

2626
spec.prepare_command = <<-CMD
2727
mkdir -p Frameworks/
28-
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.52/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
28+
curl -sL "https://github.com/GetStream/stream-video-swift-webrtc/releases/download/137.0.54/StreamWebRTC.xcframework.zip" -o Frameworks/StreamWebRTC.zip
2929
unzip -o Frameworks/StreamWebRTC.zip -d Frameworks/
3030
rm Frameworks/StreamWebRTC.zip
3131
CMD

StreamVideo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11652,7 +11652,7 @@
1165211652
repositoryURL = "https://github.com/GetStream/stream-video-swift-webrtc.git";
1165311653
requirement = {
1165411654
kind = exactVersion;
11655-
version = 137.0.52;
11655+
version = 137.0.54;
1165611656
};
1165711657
};
1165811658
40F445C32A9E1D91004BE3DA /* XCRemoteSwiftPackageReference "stream-chat-swift-test-helpers" */ = {

0 commit comments

Comments
 (0)