You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Amazon] StopConnect for UDC in Android tv-casting-app
Updated Android & iOS tv-casting-app to send stopConnect command when user
exits UDC before confirming passcode
Changes
1. ConnectionExampleFragment.java track if user confirmed passcode or
not
2. ConnectionExampleFragment.java onDestroy() send stopConnect() if user
has not confirmed passcode
3. MCConnectionExampleViewModel track if user confirmed passcode or not
4. MCConnectionExampleView trigger stopConnect when Connecting view
dissapear
Test
1. Manually verfied stopConnect works for normal UDC and commissioner generated
passcode UDC
2. Manually verified alternating attempt of normal UDC and commissioner generated
passcode UDC works
3. Manually verified stopConnect is not called in other states other than
pending passcode confirmation
self.connectionStatus ="Continuing to connect with user entered passcode: \(userEnteredPasscode)"
129
152
}else{
130
153
self.connectionStatus ="Continue Connecting to Casting Player failed with: \(String(describing: errContinue))\n\nRoute back and try again."
@@ -142,6 +165,7 @@ class MCConnectionExampleViewModel: ObservableObject {
142
165
self.Log.info("MCConnectionExampleViewModel connect() commissionerDeclarationCallback, Connection attempt cancelled by the user, calling MCCastingPlayer.stopConnecting()")
143
166
leterr= selectedCastingPlayer?.stopConnecting()
144
167
self.connectionSuccess =false
168
+
self.pendingPasscodeConfirmation =false;
145
169
if err ==nil{
146
170
self.connectionStatus ="User cancelled the connection attempt with CastingPlayer. \n\nRoute back to exit."
147
171
self.Log.info("MCConnectionExampleViewModel connect() commissionerDeclarationCallback, User cancelled the connection attempt with MCCastingPlayer, MCCastingPlayer.stopConnecting() succeeded.")
@@ -180,7 +204,10 @@ class MCConnectionExampleViewModel: ObservableObject {
0 commit comments