microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

How to clear last frame from Microsoft teams meeting

Open rnpramasamy opened this issue 5 years ago • 5 comments

I read content of .264 file frame by frame and passed those frames to Microsoft teams meeting. I am able to see that video in the meeting but i am unable to clear last frame in the meeting once I stop sending frames.

rnpramasamy avatar Feb 03 '20 10:02 rnpramasamy

You need to update the channel direction mode to indicate you are no longer intending to send further frames.

InDieTasten avatar Feb 08 '24 14:02 InDieTasten

Hi @InDieTasten, can you give me some hints on how to change the direction mode during a call? I have not found an option on the IVideoSocket interface.

ghost avatar Feb 15 '24 14:02 ghost

@leo0104 You can probably use ChangeScreenSharingRole method on the ICall interface to remove yourself as broadcaster in order to clear the last frame.

InDieTasten avatar Feb 21 '24 16:02 InDieTasten

Thank you for your answer. Unfortunately I had no success with calling ChangeScreenSharingRole() after sending video (maybe it does only work for VBSS video?)

ghost avatar Feb 22 '24 07:02 ghost

Hi @leo0104 There's no API to change the stream direction of a VideoSocket mid-call or to otherwise indicate you have no more video frames to send. (The ChangeScreenSharingRole API applies only to the VBSS stream.) The only thing I can think of to mitigate is to have the last frame be blank.

ssulzer avatar Feb 23 '24 09:02 ssulzer