Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

timrozum
Copy link
Contributor

Just integrate the new API for video track switch off.

"kind" : "remoteSourceControl",
"location" : "https://github.com/twilio/twilio-video-ios",
"location" : "git@github.com:twilio/twilio-video-ios-internal-package.git",
Copy link
Contributor Author

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.

@@ -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"
Copy link
Contributor Author

@timrozum timrozum Jun 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To test the app, switch environment to development in settings > internal > environment.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this will need to be reverted before merging to main branch.

Comment on lines +99 to +103
func remoteParticipantSwitchedOffVideoTrack(
participant: RemoteParticipant,
track: RemoteVideoTrack,
reason: Track.SwitchOffReason
) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

@@ -36,12 +36,13 @@ class ConnectOptionsFactory: NSObject {
}
}

builder.defaultRspVersion = 3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to be reverted before merging to the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants