How to clear last frame from Microsoft teams meeting
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.
You need to update the channel direction mode to indicate you are no longer intending to send further frames.
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.
@leo0104 You can probably use ChangeScreenSharingRole method on the ICall interface to remove yourself as broadcaster in order to clear the last frame.
Thank you for your answer. Unfortunately I had no success with calling ChangeScreenSharingRole() after sending video (maybe it does only work for VBSS video?)
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.