amazon-kinesis-video-streams-webrtc-sdk-ios icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-ios copied to clipboard

Multiple viewer unable to connect simultaneously

Open deepaksaxenakent opened this issue 4 years ago • 12 comments

When a single master publishing Audio-video stream and 1 viewer is subscribing that stream and another viewer wants to subscribe then the whole system hangs and the publisher stops working

Scenario Steps:

  1. Master starts publishing the stream on channel ‘A’
  2. Viewer V1 connects and subscribe Channel A’ and can see and publish Audio-video
  3. Viewer V2 connects and want to subscribe to the Channel ‘A’

Expected Result: Both viewer and the master simultaneously Result Observed: When V2 connects then all Master viewers stuck

deepaksaxenakent avatar Sep 08 '20 12:09 deepaksaxenakent

Hi deepak. Can you post the error logs that you are receiving while executing this use-case ?

Regards Krishnan

Hi Deepak,

Can you describe your test environment on master and viewer side? Did you get this result with our stock samples or made any changes also?

sharadrj avatar Sep 10 '20 06:09 sharadrj

Please find the details below: iPhone Device version - 13.6 and 12.4.8 test only on real devices

Kinesis iOS SDK version -

  • AWSAuthCore (2.15.0)
  • AWSCore (= 2.15.0)
  • AWSCognitoIdentityProvider (2.15.0):
  • AWSCognitoIdentityProviderASF (= 1.0.1)
  • AWSCore (= 2.15.0)
  • AWSCognitoIdentityProviderASF (1.0.1)
  • AWSCore (2.15.0)
  • AWSKinesisVideo (2.15.0):
  • AWSCore (= 2.15.0)
  • AWSKinesisVideoSignaling (2.15.0):
  • AWSCore (= 2.15.0)
  • AWSMobileClient (2.15.0):
  • AWSAuthCore (= 2.15.0)
  • AWSCognitoIdentityProvider (= 2.15.0)
  • CommonCryptoModule (1.0.2)
  • GoogleWebRTC (1.1.29400)
  • Starscream (3.1.1)

deepaksaxenakent avatar Sep 10 '20 07:09 deepaksaxenakent

I have posted the below details on GitHub and we are using stock sample only adding Mr. Jai to the mailing list

Please find the details below:

iPhone Device version - 13.6 and 12.4.8 test only on real devices

Kinesis iOS SDK version and dependencies:

  • AWSAuthCore (2.15.0)
  • AWSCore (= 2.15.0)
  • AWSCognitoIdentityProvider (2.15.0):
  • AWSCognitoIdentityProviderASF (= 1.0.1)
  • AWSCore (= 2.15.0)
  • AWSCognitoIdentityProviderASF (1.0.1)
  • AWSCore (2.15.0)
  • AWSKinesisVideo (2.15.0):
  • AWSCore (= 2.15.0)
  • AWSKinesisVideoSignaling (2.15.0):
  • AWSCore (= 2.15.0)
  • AWSMobileClient (2.15.0):
  • AWSAuthCore (= 2.15.0)
  • AWSCognitoIdentityProvider (= 2.15.0)
  • CommonCryptoModule (1.0.2)
  • GoogleWebRTC (1.1.29400)
  • Starscream (3.1.1)

Best Regards, Deepak Saxena Sr Software Engineer, Product Development

[KENT] www.kentcam.com KENT Cam Technologies (A division of Kent RO Systems Ltd.) E-6,7,8 Sector 59, Noida, Uttar Pradesh - 201309, Phone: +91-120-3075000 Mobile: +91-9560270789 [cid:facebook_f55fb7fd-391d-44b1-a462-f1b7b6566056.png]https://www.facebook.com/viewKENTCam [cid:twitter_86997126-672a-4922-8438-6a83aaf5951f.png] https://twitter.com/viewKENTCam [cid:linkedin_15241a70-9365-4c8f-9642-9da4d4f62500.png] https://www.linkedin.com/company/view-kent-cam/ [cid:youtube_705ba0ca-504f-4e20-8cd2-5a64f1330703.png] https://www.youtube.com/c/KENTCam/

On 10-Sep-2020, at 11:53 AM, sharadrj <[email protected]mailto:[email protected]> wrote:

Hi Deepak,

Can you describe your test environment on master and viewer side? Did you get this result with our stock samples or made any changes also?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-ios/issues/16#issuecomment-690016185, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5KQVNGNFGM4SKZCZLWO53SFBWEVANCNFSM4Q74BUUQ.

Click herehttps://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam.


This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited. This email and attachments have been scanned for potential proprietary or sensitive information leakage.

deepaksaxenakent avatar Sep 10 '20 08:09 deepaksaxenakent

Hi Deepak,

Thanks for all the information! I've reproduced the issue you're facing and we are currently trying to investigate it further.

Thanks, Divya

dswamina avatar Sep 14 '20 20:09 dswamina

Hi Divya and Team Hope you get a chance to look into the issue, may you please update us, we are waiting to integrate it.

Best Regards, Deepak Saxena Sr Software Engineer, Product Development

[KENT] www.kentcam.com KENT Cam Technologies (A division of Kent RO Systems Ltd.) E-6,7,8 Sector 59, Noida, Uttar Pradesh - 201309, Phone: +91-120-3075000 Mobile: +91-9560270789 [cid:facebook_f55fb7fd-391d-44b1-a462-f1b7b6566056.png]https://www.facebook.com/viewKENTCam [cid:twitter_86997126-672a-4922-8438-6a83aaf5951f.png] https://twitter.com/viewKENTCam [cid:linkedin_15241a70-9365-4c8f-9642-9da4d4f62500.png] https://www.linkedin.com/company/view-kent-cam/ [cid:youtube_705ba0ca-504f-4e20-8cd2-5a64f1330703.png] https://www.youtube.com/c/KENTCam/

On 15-Sep-2020, at 1:51 AM, dswamina <[email protected]mailto:[email protected]> wrote:

Hi Deepak,

Thanks for all the information! I've reproduced the issue you're facing and we are currently trying to investigate it further.

Thanks, Divya

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-ios/issues/16#issuecomment-692291958, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5KQVLR5335AZVY63JSVT3SFZ3MLANCNFSM4Q74BUUQ.

Click herehttps://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam.


This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited. This email and attachments have been scanned for potential proprietary or sensitive information leakage.

deepaksaxenakent avatar Sep 18 '20 07:09 deepaksaxenakent

Hi Divya and Team Hope you get a chance to look into the issue, may you please update us, we are waiting to integrate it.

deepaksaxenakent avatar Sep 18 '20 07:09 deepaksaxenakent

Hi Deepak,

Please refer to the sample in this branch : https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-ios/tree/multiple-viewer-sample

Hope this helps!

Thanks, Divya

dswamina avatar Oct 13 '20 06:10 dswamina

Hi Deepak,

Can you verify if the region in the sample is correct? The crash logs are pointing to 'a invalid region type'. Can you please confirm?

Thanks, Divya

dswamina avatar Oct 16 '20 05:10 dswamina

  1. On physical device iOS 12.4.8 
Line number 169 in WebRTCClient its crashing I.e remoteVideoTrack?.add(self.remoteRenderer!) because of finding self.remoteRenderer to nil.
  2. Unable to run the project on simulator (compile-time error)

// Primary can show only one remoteVideoTrack of Viewer1 on the UI. // All the other remote tracks from viewers are ignored and not added to the remoteRenderer. if (self.peerConnectionMap.count < 2) { remoteVideoTrack = peerConnection.transceivers.first { $0.mediaType == .video }?.receiver.track as? RTCVideoTrack remoteVideoTrack?.add(self.remoteRenderer!) // Crashes here }

deepaksaxenakent avatar Oct 16 '20 08:10 deepaksaxenakent

@dswamina do you have any further update on this issue?

@deepaksaxenakent has your original issue been resolved?

I would like to get more traction on this issue and not let it go stale

MushMal avatar Dec 09 '20 21:12 MushMal