Start carpture window A, it works fine. After some time, I want to switch to capture window B without stop the scstream. My code is like this :
content_filter = [[SCContentFilter alloc] initWithDesktopIndependentWindow:winID_B]; [scStream_ updateContentFilter:content_filter completionHandler:^(NSError *_Nullable error) { if (error) { "some error log" } else { "update OK" } }];
I cant get the "update OK" log, but sometimes it still output frame of the old window A.
Is there any special operation need do before call updateContentFilter ? Or, is my usage is not correct ?