Azure / azure-sdk-for-android

Android client SDKs for Microsoft Azure
https://azure.github.io/azure-sdk-for-android/
MIT License
100 stars 96 forks source link

[BUG] screen sharing stops working after multiple on offs #1487

Open eldarovich99 opened 10 months ago

eldarovich99 commented 10 months ago

Describe the bug After multiple on-offs screen sharing stops working. ScreenShareOutgoingVideoStream.getFormat returns null so screen sharing stops working.

Exception or Stack Trace

image

To Reproduce Steps to reproduce the behavior:

  1. Turn on screen sharing
  2. Turn off screen sharing
  3. Repeat previous steps 3-5 times

Expected behavior ScreenShareOutgoingVideoStream.getFormat should not return null so screen sharing should be working.

Setup (please complete the following information):

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

yassirbisteni commented 8 months ago

Thanks for contacting us, that is an expected behaviour, if the screen share is stopped or not running the videoformat will be null, our API's does not say it will return NULL and we would like to change that signature for the method but right now we can not, but keep in mind you should check if video format is not null before using it