I’ve searched the forum and can’t seem to find the answer I am looking for.
I want a remote user to be able to annotate my entire Android screen. When I use the screen share toolbar, this works great. After sharing my screen via InMeetingShareController, I click on the Annotation option in the screen share toolbar. Then on the remote side of the meeting, users can go under View Options->Annotate and then draw on my Android screen, even when I switch to a different app. So far so good, exactly what I want.
The problem is, my app has a custom UI and I have hidden the screen share toolbar with:
When the Android user shares their screen, I want to programmatically do whatever the Annotation button is doing in the screen share toolbar. I was hoping it was as simple as calling:
However this doesn’t do anything. SDKERR_OTHER_ERROR is being returned. The remote user can draw on my shared screen, but after a few seconds the drawing disappears on their end and it never shows up on the Android side. Even if I allow the screen share toolbar to remain on the screen, startAnnotation() returns an error.
I’m assuming I need to do more setup before calling startAnnotation(). Perhaps configure some kind of screen overlay that can display the drawings? I’ve attempted to add a MobileRTCShareView as a shared whiteboard to the screen overlay, but that only results in covering my entire Android screen in white and even then the remote user can’t draw to it. So I don’t think that is the correct path.
I must be missing something simple. If I knew what the Annotation button in the screen share toolbar was doing internally this would be a lot easier! Any suggestions or documentation on how to programmatically enable annotations for remote participants?
Using SDK v184.108.40.2063