Change stream/record button enable logic: stream button is active if ANY output is flagged stream, not if any output is EXCLUSIVELY stream enabled

This commit is contained in:
Zakk 2019-12-09 04:34:37 -05:00
parent e71240fc85
commit 690b5bbc29
3 changed files with 6 additions and 3 deletions

View file

@ -55,8 +55,8 @@
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
}
self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, self.browser_width, self.browser_height) configuration:[[WKWebViewConfiguration alloc] init]];
config.preferences = webPrefs;
self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, self.browser_width, self.browser_height) configuration:config];
self.webView.navigationDelegate = self;
self.webView.layer.backgroundColor = [NSColor clearColor].CGColor;
}

View file

@ -9,6 +9,7 @@
#import "WindowCapture.h"
#import "WindowCaptureViewController.h"
@implementation WindowCapture
/* CGWindowListCreateImage sucks. It's really slow. This probably isn't a useful capture type, but whatever */

View file

@ -1251,7 +1251,9 @@ NSString *const CSAppearanceSystem = @"CSAppearanceSystem";
if (outdest.isRecorder)
{
record_outputs++;
} else if (outdest.isStreamer) {
}
if (outdest.isStreamer) {
stream_outputs++;
}