Hi @Dmytro Gulko
It seems you are encountering an IllegalStateException
while trying to implement screen sharing using the Azure Communication Services SDK for Android.
Ensure that the frames you are sending are in the correct format as specified by the SDK. You should be using VideoStreamPixelFormat.RGBA
when generating your RawVideoFrame
.
Before sending frames, confirm that the VideoStream
state is VideoStreamState.STARTED
. If the stream is not started, frames will not be sent successfully.
Review the initialization steps for your ScreenShareOutgoingVideoStream
. Make sure you are correctly setting up the RawOutgoingVideoStreamOptions
and that the VideoFormats
array is properly configured.
Implement additional error handling to capture more specific exceptions that may provide insight into what is going wrong.
Use logging to trace the flow of your application and identify where the failure occurs. This can help you pinpoint whether the issue is with the frame generation, stream setup, or during the transmission.
Access raw audio and video (platform-android)
Let me know if you have any further assistances needed.