-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate new video track switch off interface #208
base: master
Are you sure you want to change the base?
Changes from 1 commit
29d1143
71240f9
6ece0ef
f0134fa
db20c9d
c30f7ae
1be7949
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,8 @@ | |
DC5CC39F249C0F5900355CC6 /* TestSecrets.json in Resources */ = {isa = PBXBuildFile; fileRef = DC9A4C9123D161A200D37CEC /* TestSecrets.json */; }; | ||
DC5CC3A0249C0F5900355CC6 /* TestSecrets.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC0446A2239716860072F597 /* TestSecrets.swift */; }; | ||
DC5CC3A1249C0F5900355CC6 /* TestSecretsStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC0446A0239716530072F597 /* TestSecretsStore.swift */; }; | ||
DC674A31285D31190010A15B /* TwilioVideo in Frameworks */ = {isa = PBXBuildFile; productRef = DC674A30285D31190010A15B /* TwilioVideo */; }; | ||
DC674A33285D31580010A15B /* TwilioVideo in Frameworks */ = {isa = PBXBuildFile; productRef = DC674A32285D31580010A15B /* TwilioVideo */; }; | ||
DC699C7C282DB045009D3C1A /* FirebaseAuth in Frameworks */ = {isa = PBXBuildFile; productRef = DC699C7B282DB045009D3C1A /* FirebaseAuth */; }; | ||
DC699C7E282DB045009D3C1A /* FirebaseCrashlytics in Frameworks */ = {isa = PBXBuildFile; productRef = DC699C7D282DB045009D3C1A /* FirebaseCrashlytics */; }; | ||
DC699C80282DB07D009D3C1A /* FirebaseAnalyticsSwift in Frameworks */ = {isa = PBXBuildFile; productRef = DC699C7F282DB07D009D3C1A /* FirebaseAnalyticsSwift */; }; | ||
|
@@ -254,8 +256,6 @@ | |
DCB3BAD8282DA2C400AF7072 /* AppCenterDistribute in Frameworks */ = {isa = PBXBuildFile; productRef = DCB3BAD7282DA2C400AF7072 /* AppCenterDistribute */; }; | ||
DCB3BADB282DA30B00AF7072 /* KeychainAccess in Frameworks */ = {isa = PBXBuildFile; productRef = DCB3BADA282DA30B00AF7072 /* KeychainAccess */; }; | ||
DCB3BADD282DA31400AF7072 /* KeychainAccess in Frameworks */ = {isa = PBXBuildFile; productRef = DCB3BADC282DA31400AF7072 /* KeychainAccess */; }; | ||
DCB3BAE0282DA34400AF7072 /* TwilioVideo in Frameworks */ = {isa = PBXBuildFile; productRef = DCB3BADF282DA34400AF7072 /* TwilioVideo */; }; | ||
DCB3BAE2282DA35100AF7072 /* TwilioVideo in Frameworks */ = {isa = PBXBuildFile; productRef = DCB3BAE1282DA35100AF7072 /* TwilioVideo */; }; | ||
DCB64B502409976F00E090BE /* APIRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCB64B4E2409976F00E090BE /* APIRequest.swift */; }; | ||
DCB64B512409976F00E090BE /* APIRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCB64B4E2409976F00E090BE /* APIRequest.swift */; }; | ||
DCB64B562409BC4E00E090BE /* APIConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCB64B542409BC4E00E090BE /* APIConfig.swift */; }; | ||
|
@@ -675,11 +675,11 @@ | |
files = ( | ||
DCB3BAD6282DA2B300AF7072 /* AppCenterDistribute in Frameworks */, | ||
DC699C87282DB4E9009D3C1A /* GoogleSignIn in Frameworks */, | ||
DC674A31285D31190010A15B /* TwilioVideo in Frameworks */, | ||
DC699C97282EB231009D3C1A /* FirebaseAnalytics in Frameworks */, | ||
DC699C7C282DB045009D3C1A /* FirebaseAuth in Frameworks */, | ||
DCB3BAD0282DA20000AF7072 /* Alamofire in Frameworks */, | ||
DC699C7E282DB045009D3C1A /* FirebaseCrashlytics in Frameworks */, | ||
DCB3BAE0282DA34400AF7072 /* TwilioVideo in Frameworks */, | ||
DCB3BADB282DA30B00AF7072 /* KeychainAccess in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
|
@@ -690,8 +690,8 @@ | |
files = ( | ||
DCB3BAD8282DA2C400AF7072 /* AppCenterDistribute in Frameworks */, | ||
DC699C89282DB536009D3C1A /* GoogleSignIn in Frameworks */, | ||
DC674A33285D31580010A15B /* TwilioVideo in Frameworks */, | ||
DCB3BAD3282DA23200AF7072 /* Alamofire in Frameworks */, | ||
DCB3BAE2282DA35100AF7072 /* TwilioVideo in Frameworks */, | ||
DC699C82282DB084009D3C1A /* FirebaseCrashlytics in Frameworks */, | ||
DCB3BADD282DA31400AF7072 /* KeychainAccess in Frameworks */, | ||
DC699C84282DB08B009D3C1A /* FirebaseAuth in Frameworks */, | ||
|
@@ -1561,11 +1561,11 @@ | |
DCB3BACF282DA20000AF7072 /* Alamofire */, | ||
DCB3BAD5282DA2B300AF7072 /* AppCenterDistribute */, | ||
DCB3BADA282DA30B00AF7072 /* KeychainAccess */, | ||
DCB3BADF282DA34400AF7072 /* TwilioVideo */, | ||
DC699C7B282DB045009D3C1A /* FirebaseAuth */, | ||
DC699C7D282DB045009D3C1A /* FirebaseCrashlytics */, | ||
DC699C86282DB4E9009D3C1A /* GoogleSignIn */, | ||
DC699C96282EB231009D3C1A /* FirebaseAnalytics */, | ||
DC674A30285D31190010A15B /* TwilioVideo */, | ||
); | ||
productName = VideoApp; | ||
productReference = 4B00124E1FBA52C4004A587E /* Video-Internal.app */; | ||
|
@@ -1588,11 +1588,11 @@ | |
DCB3BAD2282DA23200AF7072 /* Alamofire */, | ||
DCB3BAD7282DA2C400AF7072 /* AppCenterDistribute */, | ||
DCB3BADC282DA31400AF7072 /* KeychainAccess */, | ||
DCB3BAE1282DA35100AF7072 /* TwilioVideo */, | ||
DC699C7F282DB07D009D3C1A /* FirebaseAnalyticsSwift */, | ||
DC699C81282DB084009D3C1A /* FirebaseCrashlytics */, | ||
DC699C83282DB08B009D3C1A /* FirebaseAuth */, | ||
DC699C88282DB536009D3C1A /* GoogleSignIn */, | ||
DC674A32285D31580010A15B /* TwilioVideo */, | ||
); | ||
productName = VideoApp; | ||
productReference = 4B00128B1FBA52E5004A587E /* Video-Community.app */; | ||
|
@@ -1716,11 +1716,11 @@ | |
DCB3BACE282DA20000AF7072 /* XCRemoteSwiftPackageReference "Alamofire" */, | ||
DCB3BAD4282DA2B300AF7072 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */, | ||
DCB3BAD9282DA30B00AF7072 /* XCRemoteSwiftPackageReference "KeychainAccess" */, | ||
DCB3BADE282DA34400AF7072 /* XCRemoteSwiftPackageReference "twilio-video-ios" */, | ||
DC699C78282DB045009D3C1A /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */, | ||
DC699C85282DB4E9009D3C1A /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */, | ||
DC699C8A282EAD46009D3C1A /* XCRemoteSwiftPackageReference "Quick" */, | ||
DC699C8F282EAE21009D3C1A /* XCRemoteSwiftPackageReference "Nimble" */, | ||
DC674A2F285D31190010A15B /* XCRemoteSwiftPackageReference "twilio-video-ios-internal-package" */, | ||
); | ||
productRefGroup = 241282381E36A6AB002198BE /* Products */; | ||
projectDirPath = ""; | ||
|
@@ -2742,6 +2742,14 @@ | |
/* End XCConfigurationList section */ | ||
|
||
/* Begin XCRemoteSwiftPackageReference section */ | ||
DC674A2F285D31190010A15B /* XCRemoteSwiftPackageReference "twilio-video-ios-internal-package" */ = { | ||
isa = XCRemoteSwiftPackageReference; | ||
repositoryURL = "[email protected]:twilio/twilio-video-ios-internal-package.git"; | ||
requirement = { | ||
kind = exactVersion; | ||
version = "6.0.0-rc1"; | ||
}; | ||
}; | ||
DC699C78282DB045009D3C1A /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = { | ||
isa = XCRemoteSwiftPackageReference; | ||
repositoryURL = "https://github.com/firebase/firebase-ios-sdk.git"; | ||
|
@@ -2798,17 +2806,19 @@ | |
minimumVersion = 4.0.0; | ||
}; | ||
}; | ||
DCB3BADE282DA34400AF7072 /* XCRemoteSwiftPackageReference "twilio-video-ios" */ = { | ||
isa = XCRemoteSwiftPackageReference; | ||
repositoryURL = "https://github.com/twilio/twilio-video-ios"; | ||
requirement = { | ||
kind = upToNextMajorVersion; | ||
minimumVersion = 5.0.0; | ||
}; | ||
}; | ||
/* End XCRemoteSwiftPackageReference section */ | ||
|
||
/* Begin XCSwiftPackageProductDependency section */ | ||
DC674A30285D31190010A15B /* TwilioVideo */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = DC674A2F285D31190010A15B /* XCRemoteSwiftPackageReference "twilio-video-ios-internal-package" */; | ||
productName = TwilioVideo; | ||
}; | ||
DC674A32285D31580010A15B /* TwilioVideo */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = DC674A2F285D31190010A15B /* XCRemoteSwiftPackageReference "twilio-video-ios-internal-package" */; | ||
productName = TwilioVideo; | ||
}; | ||
DC699C7B282DB045009D3C1A /* FirebaseAuth */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = DC699C78282DB045009D3C1A /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */; | ||
|
@@ -2904,16 +2914,6 @@ | |
package = DCB3BAD9282DA30B00AF7072 /* XCRemoteSwiftPackageReference "KeychainAccess" */; | ||
productName = KeychainAccess; | ||
}; | ||
DCB3BADF282DA34400AF7072 /* TwilioVideo */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = DCB3BADE282DA34400AF7072 /* XCRemoteSwiftPackageReference "twilio-video-ios" */; | ||
productName = TwilioVideo; | ||
}; | ||
DCB3BAE1282DA35100AF7072 /* TwilioVideo */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = DCB3BADE282DA34400AF7072 /* XCRemoteSwiftPackageReference "twilio-video-ios" */; | ||
productName = TwilioVideo; | ||
}; | ||
/* End XCSwiftPackageProductDependency section */ | ||
}; | ||
rootObject = 2412822F1E36A6AB002198BE /* Project object */; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,7 @@ private extension TwilioEnvironment { | |
switch self { | ||
case .production: return "twilio-video-react.appspot.com" | ||
case .staging: return "stage-dot-twilio-video-react.appspot.com" | ||
case .development: return "dev-dot-twilio-video-react.appspot.com" | ||
case .development: return "large-rooms-dev-dot-twilio-video-react.appspot.com" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To test the app, switch environment to I'm thinking about how I'm going to distribute this app for testing. I wonder if I should just hardcode environment to development for now. I may do that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this will need to be reverted before merging to main branch. |
||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,11 @@ extension RemoteParticipantManager: RemoteParticipantDelegate { | |
delegate?.participantDidChange(self) | ||
} | ||
|
||
func remoteParticipantSwitchedOffVideoTrack(participant: RemoteParticipant, track: RemoteVideoTrack) { | ||
func remoteParticipantSwitchedOffVideoTrack( | ||
participant: RemoteParticipant, | ||
track: RemoteVideoTrack, | ||
reason: Track.SwitchOffReason | ||
) { | ||
Comment on lines
+108
to
+112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now I only had to update the delegate function interface. We were not previously checking disabled state for the camera track which I think was a bug. We should have been checking it and updating the UI when it was disabled. But now it just works with the new and improved track switch off API. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In a later PR we will probably look at the switch off reason to distinguish in the UI when the user turned off the camera from when the server switched the track off. We are working on new UX designs for this. |
||
delegate?.participantDidChange(self) | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,12 +36,13 @@ class ConnectOptionsFactory: NSObject { | |
} | ||
} | ||
|
||
builder.defaultRspVersion = 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will need to be reverted before merging to the main branch. |
||
builder.roomName = roomName | ||
builder.audioTracks = audioTracks | ||
builder.videoTracks = videoTracks | ||
builder.isDominantSpeakerEnabled = true | ||
builder.isNetworkQualityEnabled = true | ||
builder.areInsightsEnabled = self.appSettingsStore.areInsightsEnabled | ||
builder.isInsightsEnabled = self.appSettingsStore.isInsightsEnabled | ||
builder.networkQualityConfiguration = NetworkQualityConfiguration( | ||
localVerbosity: .minimal, | ||
remoteVerbosity: .minimal | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must use public package before merging to main branch.