pyobjc-framework-ScreenCaptureKit 10.1__tar.gz → 11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/ScreenCaptureKit/__init__.py +16 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/ScreenCaptureKit/_metadata.py +118 -2
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/PKG-INFO +6 -6
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/SOURCES.txt +8 -6
- pyobjc_framework_screencapturekit-11.0/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_screencapturekit-11.0/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/requires.txt +3 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/License.txt +1 -1
- pyobjc_framework_screencapturekit-11.0/Modules/_ScreenCaptureKit.m +67 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Modules/_ScreenCaptureKit_protocols.m +4 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PKG-INFO +6 -6
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_scerror.py +4 -0
- pyobjc_framework_screencapturekit-11.0/PyObjCTest/test_screcordingoutput.py +9 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_scscreenshotmanager.py +8 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_scshareablecontent.py +8 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_scstream.py +43 -0
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/arm64-14.2.fwinfo → pyobjc_framework_screencapturekit-11.0/metadata/raw/arm64-14.5.fwinfo +49 -2
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_screencapturekit-11.0/metadata/raw/arm64-15.0.fwinfo +623 -19
- pyobjc_framework_screencapturekit-11.0/metadata/raw/arm64-15.2.fwinfo +3509 -0
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/x86_64-14.2.fwinfo → pyobjc_framework_screencapturekit-11.0/metadata/raw/x86_64-14.5.fwinfo +49 -2
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_screencapturekit-11.0/metadata/raw/x86_64-15.0.fwinfo +623 -19
- pyobjc_framework_screencapturekit-11.0/metadata/raw/x86_64-15.2.fwinfo +3509 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/setup.py +2 -2
- pyobjc-framework-ScreenCaptureKit-10.1/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/requires.txt +0 -3
- pyobjc-framework-ScreenCaptureKit-10.1/Modules/_ScreenCaptureKit.m +0 -43
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/arm64-13.0.fwinfo +0 -1625
- pyobjc-framework-ScreenCaptureKit-10.1/metadata/raw/x86_64-13.0.fwinfo +0 -1625
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/Lib/pyobjc_framework_ScreenCaptureKit.egg-info/top_level.txt +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_sccontentsharingpicker.py +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/PyObjCTest/test_screencaputurekit.py +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/ScreenCaptureKit.fwinfo +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/raw/arm64-13.1.fwinfo +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/metadata/raw/x86_64-13.1.fwinfo +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/setup.cfg +0 -0
|
@@ -31,6 +31,22 @@ def _setup():
|
|
|
31
31
|
globals()["__dir__"] = dir_func
|
|
32
32
|
globals()["__getattr__"] = getattr_func
|
|
33
33
|
|
|
34
|
+
for cls, sel in (
|
|
35
|
+
("SCStream", b"init"),
|
|
36
|
+
("SCStream", b"new"),
|
|
37
|
+
("SCRunningApplication", b"init"),
|
|
38
|
+
("SCRunningApplication", b"new"),
|
|
39
|
+
("SCWindow", b"init"),
|
|
40
|
+
("SCWindow", b"new"),
|
|
41
|
+
("SCDisplay", b"init"),
|
|
42
|
+
("SCDisplay", b"new"),
|
|
43
|
+
("SCShareableContent", b"init"),
|
|
44
|
+
("SCShareableContent", b"new"),
|
|
45
|
+
("SCContentSharingPicker", b"init"),
|
|
46
|
+
("SCContentSharingPicker", b"new"),
|
|
47
|
+
):
|
|
48
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
49
|
+
|
|
34
50
|
del sys.modules["ScreenCaptureKit._metadata"]
|
|
35
51
|
|
|
36
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Sat Nov 30 11:02:53 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,10 +31,12 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$SCStreamErrorDomain$SCStreamFrameInfoBoundingRect$SCStreamFrameInfoContentRect$SCStreamFrameInfoContentScale$SCStreamFrameInfoDirtyRects$SCStreamFrameInfoDisplayTime$SCStreamFrameInfoPresenterOverlayContentRect$SCStreamFrameInfoScaleFactor$SCStreamFrameInfoScreenRect$SCStreamFrameInfoStatus$"""
|
|
34
|
-
enums = """$RP_REPORTING_END_REASON_SUMMARY_EVENT@2$RP_REPORTING_SCREENSHOT_EVENT@3$RP_REPORTING_SUMMARY_EVENT@1$SCCaptureResolutionAutomatic@0$SCCaptureResolutionBest@1$SCCaptureResolutionNominal@2$SCContentSharingPickerModeMultipleApplications@8$SCContentSharingPickerModeMultipleWindows@2$SCContentSharingPickerModeSingleApplication@4$SCContentSharingPickerModeSingleDisplay@16$SCContentSharingPickerModeSingleWindow@1$SCFrameStatusBlank@2$SCFrameStatusComplete@0$SCFrameStatusIdle@1$SCFrameStatusStarted@4$SCFrameStatusStopped@5$SCFrameStatusSuspended@3$SCPresenterOverlayAlertSettingAlways@2$SCPresenterOverlayAlertSettingNever@1$SCPresenterOverlayAlertSettingSystem@0$SCShareableContentStyleApplication@3$SCShareableContentStyleDisplay@2$SCShareableContentStyleNone@0$SCShareableContentStyleWindow@1$SCStreamErrorAttemptToConfigState@-3810$SCStreamErrorAttemptToStartStreamState@-3807$SCStreamErrorAttemptToStopStreamState@-3808$SCStreamErrorAttemptToUpdateFilterState@-3809$SCStreamErrorFailedApplicationConnectionInterrupted@-3805$SCStreamErrorFailedApplicationConnectionInvalid@-3804$SCStreamErrorFailedNoMatchingApplicationContext@-3806$SCStreamErrorFailedToStart@-3802$SCStreamErrorFailedToStartAudioCapture@-3818$SCStreamErrorFailedToStopAudioCapture@-3819$SCStreamErrorInternalError@-3811$SCStreamErrorInvalidParameter@-3812$SCStreamErrorMissingEntitlements@-3803$SCStreamErrorNoCaptureSource@-3815$SCStreamErrorNoDisplayList@-3814$SCStreamErrorNoWindowList@-3813$SCStreamErrorRemovingStream@-3816$SCStreamErrorUserDeclined@-3801$SCStreamErrorUserStopped@-3817$SCStreamOutputTypeAudio@1$SCStreamOutputTypeScreen@0$SCStreamTypeDisplay@1$SCStreamTypeWindow@0$"""
|
|
34
|
+
enums = """$RP_REPORTING_END_REASON_SUMMARY_EVENT@2$RP_REPORTING_SCREENSHOT_EVENT@3$RP_REPORTING_SUMMARY_EVENT@1$SCCaptureDynamicRangeHDRCanonicalDisplay@2$SCCaptureDynamicRangeHDRLocalDisplay@1$SCCaptureDynamicRangeSDR@0$SCCaptureResolutionAutomatic@0$SCCaptureResolutionBest@1$SCCaptureResolutionNominal@2$SCContentSharingPickerModeMultipleApplications@8$SCContentSharingPickerModeMultipleWindows@2$SCContentSharingPickerModeSingleApplication@4$SCContentSharingPickerModeSingleDisplay@16$SCContentSharingPickerModeSingleWindow@1$SCFrameStatusBlank@2$SCFrameStatusComplete@0$SCFrameStatusIdle@1$SCFrameStatusStarted@4$SCFrameStatusStopped@5$SCFrameStatusSuspended@3$SCPresenterOverlayAlertSettingAlways@2$SCPresenterOverlayAlertSettingNever@1$SCPresenterOverlayAlertSettingSystem@0$SCShareableContentStyleApplication@3$SCShareableContentStyleDisplay@2$SCShareableContentStyleNone@0$SCShareableContentStyleWindow@1$SCStreamConfigurationPresetCaptureHDRScreenshotCanonicalDisplay@3$SCStreamConfigurationPresetCaptureHDRScreenshotLocalDisplay@2$SCStreamConfigurationPresetCaptureHDRStreamCanonicalDisplay@1$SCStreamConfigurationPresetCaptureHDRStreamLocalDisplay@0$SCStreamErrorAttemptToConfigState@-3810$SCStreamErrorAttemptToStartStreamState@-3807$SCStreamErrorAttemptToStopStreamState@-3808$SCStreamErrorAttemptToUpdateFilterState@-3809$SCStreamErrorFailedApplicationConnectionInterrupted@-3805$SCStreamErrorFailedApplicationConnectionInvalid@-3804$SCStreamErrorFailedNoMatchingApplicationContext@-3806$SCStreamErrorFailedToStart@-3802$SCStreamErrorFailedToStartAudioCapture@-3818$SCStreamErrorFailedToStartMicrophoneCapture@-3820$SCStreamErrorFailedToStopAudioCapture@-3819$SCStreamErrorInternalError@-3811$SCStreamErrorInvalidParameter@-3812$SCStreamErrorMissingEntitlements@-3803$SCStreamErrorNoCaptureSource@-3815$SCStreamErrorNoDisplayList@-3814$SCStreamErrorNoWindowList@-3813$SCStreamErrorRemovingStream@-3816$SCStreamErrorSystemStoppedStream@-3821$SCStreamErrorUserDeclined@-3801$SCStreamErrorUserStopped@-3817$SCStreamOutputTypeAudio@1$SCStreamOutputTypeMicrophone@2$SCStreamOutputTypeScreen@0$SCStreamTypeDisplay@1$SCStreamTypeWindow@0$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
|
+
"SCStreamConfigurationPreset": NewType("SCStreamConfigurationPreset", int),
|
|
37
38
|
"SCCaptureResolutionType": NewType("SCCaptureResolutionType", int),
|
|
39
|
+
"SCCaptureDynamicRange": NewType("SCCaptureDynamicRange", int),
|
|
38
40
|
"SCContentSharingPickerMode": NewType("SCContentSharingPickerMode", int),
|
|
39
41
|
"SCPresenterOverlayAlertSetting": NewType(
|
|
40
42
|
"SCPresenterOverlayAlertSetting", int
|
|
@@ -84,6 +86,25 @@ try:
|
|
|
84
86
|
b"outputVideoEffectDidStopForStream:",
|
|
85
87
|
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
86
88
|
)
|
|
89
|
+
r(
|
|
90
|
+
b"NSObject",
|
|
91
|
+
b"recordingOutput:didFailWithError:",
|
|
92
|
+
{
|
|
93
|
+
"required": False,
|
|
94
|
+
"retval": {"type": b"v"},
|
|
95
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
96
|
+
},
|
|
97
|
+
)
|
|
98
|
+
r(
|
|
99
|
+
b"NSObject",
|
|
100
|
+
b"recordingOutputDidFinishRecording:",
|
|
101
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
102
|
+
)
|
|
103
|
+
r(
|
|
104
|
+
b"NSObject",
|
|
105
|
+
b"recordingOutputDidStartRecording:",
|
|
106
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
107
|
+
)
|
|
87
108
|
r(
|
|
88
109
|
b"NSObject",
|
|
89
110
|
b"stream:didOutputSampleBuffer:ofType:",
|
|
@@ -106,6 +127,21 @@ try:
|
|
|
106
127
|
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
107
128
|
},
|
|
108
129
|
)
|
|
130
|
+
r(
|
|
131
|
+
b"NSObject",
|
|
132
|
+
b"streamDidBecomeActive:",
|
|
133
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
134
|
+
)
|
|
135
|
+
r(
|
|
136
|
+
b"NSObject",
|
|
137
|
+
b"streamDidBecomeInactive:",
|
|
138
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
139
|
+
)
|
|
140
|
+
r(
|
|
141
|
+
b"NSObject",
|
|
142
|
+
b"userDidStopStream:",
|
|
143
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
144
|
+
)
|
|
109
145
|
r(b"SCContentFilter", b"includeMenuBar", {"retval": {"type": b"Z"}})
|
|
110
146
|
r(b"SCContentFilter", b"setIncludeMenuBar:", {"arguments": {2: {"type": b"Z"}}})
|
|
111
147
|
r(b"SCContentSharingPicker", b"isActive", {"retval": {"type": b"Z"}})
|
|
@@ -120,6 +156,24 @@ try:
|
|
|
120
156
|
b"setAllowsChangingSelectedContent:",
|
|
121
157
|
{"arguments": {2: {"type": b"Z"}}},
|
|
122
158
|
)
|
|
159
|
+
r(
|
|
160
|
+
b"SCScreenshotManager",
|
|
161
|
+
b"captureImageInRect:completionHandler:",
|
|
162
|
+
{
|
|
163
|
+
"arguments": {
|
|
164
|
+
3: {
|
|
165
|
+
"callable": {
|
|
166
|
+
"retval": {"type": b"v"},
|
|
167
|
+
"arguments": {
|
|
168
|
+
0: {"type": b"^v"},
|
|
169
|
+
1: {"type": b"^{CGImage=}"},
|
|
170
|
+
2: {"type": b"@"},
|
|
171
|
+
},
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
)
|
|
123
177
|
r(
|
|
124
178
|
b"SCScreenshotManager",
|
|
125
179
|
b"captureImageWithFilter:configuration:completionHandler:",
|
|
@@ -156,6 +210,24 @@ try:
|
|
|
156
210
|
}
|
|
157
211
|
},
|
|
158
212
|
)
|
|
213
|
+
r(
|
|
214
|
+
b"SCShareableContent",
|
|
215
|
+
b"getCurrentProcessShareableContentWithCompletionHandler:",
|
|
216
|
+
{
|
|
217
|
+
"arguments": {
|
|
218
|
+
2: {
|
|
219
|
+
"callable": {
|
|
220
|
+
"retval": {"type": b"v"},
|
|
221
|
+
"arguments": {
|
|
222
|
+
0: {"type": b"^v"},
|
|
223
|
+
1: {"type": b"@"},
|
|
224
|
+
2: {"type": b"@"},
|
|
225
|
+
},
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
)
|
|
159
231
|
r(
|
|
160
232
|
b"SCShareableContent",
|
|
161
233
|
b"getShareableContentExcludingDesktopWindows:onScreenWindowsOnly:completionHandler:",
|
|
@@ -232,11 +304,21 @@ try:
|
|
|
232
304
|
}
|
|
233
305
|
},
|
|
234
306
|
)
|
|
307
|
+
r(
|
|
308
|
+
b"SCStream",
|
|
309
|
+
b"addRecordingOutput:error:",
|
|
310
|
+
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
311
|
+
)
|
|
235
312
|
r(
|
|
236
313
|
b"SCStream",
|
|
237
314
|
b"addStreamOutput:type:sampleHandlerQueue:error:",
|
|
238
315
|
{"retval": {"type": b"Z"}, "arguments": {5: {"type_modifier": b"o"}}},
|
|
239
316
|
)
|
|
317
|
+
r(
|
|
318
|
+
b"SCStream",
|
|
319
|
+
b"removeRecordingOutput:error:",
|
|
320
|
+
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
321
|
+
)
|
|
240
322
|
r(
|
|
241
323
|
b"SCStream",
|
|
242
324
|
b"removeStreamOutput:type:error:",
|
|
@@ -298,6 +380,7 @@ try:
|
|
|
298
380
|
}
|
|
299
381
|
},
|
|
300
382
|
)
|
|
383
|
+
r(b"SCStreamConfiguration", b"captureMicrophone", {"retval": {"type": b"Z"}})
|
|
301
384
|
r(b"SCStreamConfiguration", b"capturesAudio", {"retval": {"type": b"Z"}})
|
|
302
385
|
r(b"SCStreamConfiguration", b"capturesShadowsOnly", {"retval": {"type": b"Z"}})
|
|
303
386
|
r(
|
|
@@ -325,6 +408,11 @@ try:
|
|
|
325
408
|
)
|
|
326
409
|
r(b"SCStreamConfiguration", b"preservesAspectRatio", {"retval": {"type": b"Z"}})
|
|
327
410
|
r(b"SCStreamConfiguration", b"scalesToFit", {"retval": {"type": b"Z"}})
|
|
411
|
+
r(
|
|
412
|
+
b"SCStreamConfiguration",
|
|
413
|
+
b"setCaptureMicrophone:",
|
|
414
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
415
|
+
)
|
|
328
416
|
r(
|
|
329
417
|
b"SCStreamConfiguration",
|
|
330
418
|
b"setCapturesAudio:",
|
|
@@ -381,13 +469,41 @@ try:
|
|
|
381
469
|
b"setShouldBeOpaque:",
|
|
382
470
|
{"arguments": {2: {"type": b"Z"}}},
|
|
383
471
|
)
|
|
472
|
+
r(
|
|
473
|
+
b"SCStreamConfiguration",
|
|
474
|
+
b"setShowMouseClicks:",
|
|
475
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
476
|
+
)
|
|
384
477
|
r(b"SCStreamConfiguration", b"setShowsCursor:", {"arguments": {2: {"type": b"Z"}}})
|
|
385
478
|
r(b"SCStreamConfiguration", b"shouldBeOpaque", {"retval": {"type": b"Z"}})
|
|
479
|
+
r(b"SCStreamConfiguration", b"showMouseClicks", {"retval": {"type": b"Z"}})
|
|
386
480
|
r(b"SCStreamConfiguration", b"showsCursor", {"retval": {"type": b"Z"}})
|
|
387
481
|
r(b"SCWindow", b"isActive", {"retval": {"type": b"Z"}})
|
|
388
482
|
r(b"SCWindow", b"isOnScreen", {"retval": {"type": b"Z"}})
|
|
389
483
|
finally:
|
|
390
484
|
objc._updatingMetadata(False)
|
|
485
|
+
|
|
486
|
+
objc.registerNewKeywordsFromSelector(
|
|
487
|
+
"SCContentFilter", b"initWithDesktopIndependentWindow:"
|
|
488
|
+
)
|
|
489
|
+
objc.registerNewKeywordsFromSelector(
|
|
490
|
+
"SCContentFilter", b"initWithDisplay:excludingApplications:exceptingWindows:"
|
|
491
|
+
)
|
|
492
|
+
objc.registerNewKeywordsFromSelector(
|
|
493
|
+
"SCContentFilter", b"initWithDisplay:excludingWindows:"
|
|
494
|
+
)
|
|
495
|
+
objc.registerNewKeywordsFromSelector(
|
|
496
|
+
"SCContentFilter", b"initWithDisplay:includingApplications:exceptingWindows:"
|
|
497
|
+
)
|
|
498
|
+
objc.registerNewKeywordsFromSelector(
|
|
499
|
+
"SCContentFilter", b"initWithDisplay:includingWindows:"
|
|
500
|
+
)
|
|
501
|
+
objc.registerNewKeywordsFromSelector(
|
|
502
|
+
"SCRecordingOutput", b"initWithConfiguration:delegate:"
|
|
503
|
+
)
|
|
504
|
+
objc.registerNewKeywordsFromSelector(
|
|
505
|
+
"SCStream", b"initWithFilter:configuration:delegate:"
|
|
506
|
+
)
|
|
391
507
|
expressions = {}
|
|
392
508
|
|
|
393
509
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-ScreenCaptureKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework ScreenCaptureKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-CoreMedia>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-CoreMedia>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
37
37
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
38
38
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_ScreenCaptureKit.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_ScreenCaptureKit.egg-info/top_level.txt
|
|
14
15
|
Modules/_ScreenCaptureKit.m
|
|
@@ -18,6 +19,7 @@ Modules/pyobjc-compat.h
|
|
|
18
19
|
PyObjCTest/__init__.py
|
|
19
20
|
PyObjCTest/test_sccontentsharingpicker.py
|
|
20
21
|
PyObjCTest/test_scerror.py
|
|
22
|
+
PyObjCTest/test_screcordingoutput.py
|
|
21
23
|
PyObjCTest/test_screencaputurekit.py
|
|
22
24
|
PyObjCTest/test_scscreenshotmanager.py
|
|
23
25
|
PyObjCTest/test_scshareablecontent.py
|
|
@@ -25,12 +27,12 @@ PyObjCTest/test_scstream.py
|
|
|
25
27
|
metadata/ScreenCaptureKit.fwinfo
|
|
26
28
|
metadata/metadata.ini
|
|
27
29
|
metadata/raw/arm64-12.3.fwinfo
|
|
28
|
-
metadata/raw/arm64-13.0.fwinfo
|
|
29
30
|
metadata/raw/arm64-13.1.fwinfo
|
|
30
|
-
metadata/raw/arm64-14.
|
|
31
|
-
metadata/raw/arm64-
|
|
31
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
32
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
33
|
+
metadata/raw/arm64-15.2.fwinfo
|
|
32
34
|
metadata/raw/x86_64-12.3.fwinfo
|
|
33
|
-
metadata/raw/x86_64-13.0.fwinfo
|
|
34
35
|
metadata/raw/x86_64-13.1.fwinfo
|
|
35
|
-
metadata/raw/x86_64-14.
|
|
36
|
-
metadata/raw/x86_64-
|
|
36
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
37
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
38
|
+
metadata/raw/x86_64-15.2.fwinfo
|
{pyobjc-framework-ScreenCaptureKit-10.1 → pyobjc_framework_screencapturekit-11.0}/License.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2024 - Ronald Oussoren
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
7
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <Foundation/Foundation.h>
|
|
6
|
+
#import <ScreenCaptureKit/ScreenCaptureKit.h>
|
|
7
|
+
|
|
8
|
+
/* We include the source code here instead of
|
|
9
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
10
|
+
*/
|
|
11
|
+
#include "_ScreenCaptureKit_protocols.m"
|
|
12
|
+
|
|
13
|
+
static PyMethodDef mod_methods[] = {
|
|
14
|
+
{0, 0, 0, 0} /* sentinel */
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static int mod_exec_module(PyObject* m)
|
|
18
|
+
{
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
23
|
+
{
|
|
24
|
+
.slot = Py_mod_exec,
|
|
25
|
+
.value = (void*)mod_exec_module
|
|
26
|
+
},
|
|
27
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
28
|
+
{
|
|
29
|
+
/* This extension does not use the CPython API other than initializing
|
|
30
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
31
|
+
* GILs
|
|
32
|
+
*/
|
|
33
|
+
.slot = Py_mod_multiple_interpreters,
|
|
34
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
35
|
+
},
|
|
36
|
+
#endif
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
38
|
+
{
|
|
39
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
40
|
+
.slot = Py_mod_gil,
|
|
41
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
42
|
+
},
|
|
43
|
+
#endif
|
|
44
|
+
{ /* Sentinel */
|
|
45
|
+
.slot = 0,
|
|
46
|
+
.value = 0
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
static struct PyModuleDef mod_module = {
|
|
51
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
52
|
+
.m_name = "_ScreenCaptureKit",
|
|
53
|
+
.m_doc = NULL,
|
|
54
|
+
.m_size = 0,
|
|
55
|
+
.m_methods = mod_methods,
|
|
56
|
+
.m_slots = mod_slots,
|
|
57
|
+
.m_traverse = NULL,
|
|
58
|
+
.m_clear = NULL,
|
|
59
|
+
.m_free = NULL,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
PyObject* PyInit__ScreenCaptureKit(void);
|
|
63
|
+
|
|
64
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__ScreenCaptureKit(void)
|
|
65
|
+
{
|
|
66
|
+
return PyModuleDef_Init(&mod_module);
|
|
67
|
+
}
|
|
@@ -9,4 +9,8 @@ static void __attribute__((__used__)) use_protocols(void)
|
|
|
9
9
|
p = PyObjC_IdToPython(@protocol(SCContentSharingPickerObserver));
|
|
10
10
|
Py_XDECREF(p);
|
|
11
11
|
#endif
|
|
12
|
+
#if PyObjC_BUILD_RELEASE >= 1500
|
|
13
|
+
p = PyObjC_IdToPython(@protocol(SCRecordingOutputDelegate));
|
|
14
|
+
Py_XDECREF(p);
|
|
15
|
+
#endif
|
|
12
16
|
}
|
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-ScreenCaptureKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework ScreenCaptureKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-CoreMedia>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-CoreMedia>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Wrappers for the "ScreenCaptureKit" framework on macOS.
|
|
@@ -34,3 +34,7 @@ class TestSCError(TestCase):
|
|
|
34
34
|
self.assertEqual(ScreenCaptureKit.SCStreamErrorUserStopped, -3817)
|
|
35
35
|
self.assertEqual(ScreenCaptureKit.SCStreamErrorFailedToStartAudioCapture, -3818)
|
|
36
36
|
self.assertEqual(ScreenCaptureKit.SCStreamErrorFailedToStopAudioCapture, -3819)
|
|
37
|
+
self.assertEqual(
|
|
38
|
+
ScreenCaptureKit.SCStreamErrorFailedToStartMicrophoneCapture, -3820
|
|
39
|
+
)
|
|
40
|
+
self.assertEqual(ScreenCaptureKit.SCStreamErrorSystemStoppedStream, -3821)
|
|
@@ -16,3 +16,11 @@ class TestSCScreenshotManager(TestCase):
|
|
|
16
16
|
2,
|
|
17
17
|
b"v^{CGImage=}@",
|
|
18
18
|
)
|
|
19
|
+
|
|
20
|
+
@min_os_level("15.2")
|
|
21
|
+
def test_methods15_2(self):
|
|
22
|
+
self.assertArgIsBlock(
|
|
23
|
+
ScreenCaptureKit.SCScreenshotManager.captureImageInRect_completionHandler_,
|
|
24
|
+
1,
|
|
25
|
+
b"v^{CGImage=}@",
|
|
26
|
+
)
|
|
@@ -56,3 +56,11 @@ class TestSCShareableContent(TestCase):
|
|
|
56
56
|
@min_os_level("13.1")
|
|
57
57
|
def test_methods13_1(self):
|
|
58
58
|
self.assertResultIsBOOL(ScreenCaptureKit.SCWindow.isActive)
|
|
59
|
+
|
|
60
|
+
@min_os_level("14.4")
|
|
61
|
+
def test_methods14_4(self):
|
|
62
|
+
self.assertArgIsBlock(
|
|
63
|
+
ScreenCaptureKit.SCShareableContent.getCurrentProcessShareableContentWithCompletionHandler_,
|
|
64
|
+
0,
|
|
65
|
+
b"v@@",
|
|
66
|
+
)
|
|
@@ -26,6 +26,7 @@ class TestSCStream(TestCase):
|
|
|
26
26
|
|
|
27
27
|
self.assertEqual(ScreenCaptureKit.SCStreamOutputTypeScreen, 0)
|
|
28
28
|
self.assertEqual(ScreenCaptureKit.SCStreamOutputTypeAudio, 1)
|
|
29
|
+
self.assertEqual(ScreenCaptureKit.SCStreamOutputTypeMicrophone, 2)
|
|
29
30
|
|
|
30
31
|
self.assertIsInstance(ScreenCaptureKit.SCStreamFrameInfoStatus, str)
|
|
31
32
|
self.assertIsInstance(ScreenCaptureKit.SCStreamFrameInfoDisplayTime, str)
|
|
@@ -48,6 +49,28 @@ class TestSCStream(TestCase):
|
|
|
48
49
|
self.assertEqual(ScreenCaptureKit.SCPresenterOverlayAlertSettingNever, 1)
|
|
49
50
|
self.assertEqual(ScreenCaptureKit.SCPresenterOverlayAlertSettingAlways, 2)
|
|
50
51
|
|
|
52
|
+
self.assertIsEnumType(ScreenCaptureKit.SCCaptureDynamicRange)
|
|
53
|
+
self.assertEqual(ScreenCaptureKit.SCCaptureDynamicRangeSDR, 0)
|
|
54
|
+
self.assertEqual(ScreenCaptureKit.SCCaptureDynamicRangeHDRLocalDisplay, 1)
|
|
55
|
+
self.assertEqual(ScreenCaptureKit.SCCaptureDynamicRangeHDRCanonicalDisplay, 2)
|
|
56
|
+
|
|
57
|
+
self.assertIsEnumType(ScreenCaptureKit.SCStreamConfigurationPreset)
|
|
58
|
+
self.assertEqual(
|
|
59
|
+
ScreenCaptureKit.SCStreamConfigurationPresetCaptureHDRStreamLocalDisplay, 0
|
|
60
|
+
)
|
|
61
|
+
self.assertEqual(
|
|
62
|
+
ScreenCaptureKit.SCStreamConfigurationPresetCaptureHDRStreamCanonicalDisplay,
|
|
63
|
+
1,
|
|
64
|
+
)
|
|
65
|
+
self.assertEqual(
|
|
66
|
+
ScreenCaptureKit.SCStreamConfigurationPresetCaptureHDRScreenshotLocalDisplay,
|
|
67
|
+
2,
|
|
68
|
+
)
|
|
69
|
+
self.assertEqual(
|
|
70
|
+
ScreenCaptureKit.SCStreamConfigurationPresetCaptureHDRScreenshotCanonicalDisplay,
|
|
71
|
+
3,
|
|
72
|
+
)
|
|
73
|
+
|
|
51
74
|
@min_os_level("13.1")
|
|
52
75
|
def test_constants13_1(self):
|
|
53
76
|
self.assertIsInstance(ScreenCaptureKit.SCStreamFrameInfoScreenRect, str)
|
|
@@ -173,6 +196,26 @@ class TestSCStream(TestCase):
|
|
|
173
196
|
ScreenCaptureKit.SCStreamConfiguration.setIncludeChildWindows_, 0
|
|
174
197
|
)
|
|
175
198
|
|
|
199
|
+
@min_os_level("15.0")
|
|
200
|
+
def test_methods15_0(self):
|
|
201
|
+
self.assertResultIsBOOL(ScreenCaptureKit.SCStreamConfiguration.showMouseClicks)
|
|
202
|
+
self.assertArgIsBOOL(
|
|
203
|
+
ScreenCaptureKit.SCStreamConfiguration.setShowMouseClicks_, 0
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
self.assertResultIsBOOL(
|
|
207
|
+
ScreenCaptureKit.SCStreamConfiguration.captureMicrophone
|
|
208
|
+
)
|
|
209
|
+
self.assertArgIsBOOL(
|
|
210
|
+
ScreenCaptureKit.SCStreamConfiguration.setCaptureMicrophone_, 0
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
self.assertResultIsBOOL(ScreenCaptureKit.SCStream.addRecordingOutput_error_)
|
|
214
|
+
self.assertArgIsOut(ScreenCaptureKit.SCStream.addRecordingOutput_error_, 1)
|
|
215
|
+
|
|
216
|
+
self.assertResultIsBOOL(ScreenCaptureKit.SCStream.removeRecordingOutput_error_)
|
|
217
|
+
self.assertArgIsOut(ScreenCaptureKit.SCStream.removeRecordingOutput_error_, 1)
|
|
218
|
+
|
|
176
219
|
def test_protocols(self):
|
|
177
220
|
self.assertProtocolExists("SCStreamDelegate")
|
|
178
221
|
self.assertProtocolExists("SCStreamOutput")
|