winrt-Windows.Media.Capture 3.1.0__tar.gz → 3.2.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.
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/PKG-INFO +20 -20
- winrt_windows_media_capture-3.2.0/all-requirements.txt +20 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/py.Windows.Media.Capture.cpp +1 -466
- winrt_windows_media_capture-3.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/requirements.txt +2 -2
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/setup.py +2 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt/_winrt_windows_media_capture.pyi +7 -40
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt/windows/media/capture/__init__.py +1 -5
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt_Windows.Media.Capture.egg-info/PKG-INFO +20 -20
- winrt_windows_media_capture-3.2.0/winrt_Windows.Media.Capture.egg-info/requires.txt +21 -0
- winrt_windows_media_capture-3.1.0/all-requirements.txt +0 -20
- winrt_windows_media_capture-3.1.0/pywinrt-version.txt +0 -1
- winrt_windows_media_capture-3.1.0/winrt_Windows.Media.Capture.egg-info/requires.txt +0 -21
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/README.md +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/pyproject.toml +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/setup.cfg +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt/windows/media/capture/py.typed +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt_Windows.Media.Capture.egg-info/SOURCES.txt +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt_Windows.Media.Capture.egg-info/dependency_links.txt +0 -0
- {winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/winrt_Windows.Media.Capture.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Media.Capture
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,26 +12,26 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.
|
|
15
|
+
Requires-Dist: winrt-runtime==3.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.
|
|
21
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.
|
|
22
|
-
Requires-Dist: winrt-Windows.Media[all]==3.
|
|
23
|
-
Requires-Dist: winrt-Windows.Media.Capture.Core[all]==3.
|
|
24
|
-
Requires-Dist: winrt-Windows.Media.Capture.Frames[all]==3.
|
|
25
|
-
Requires-Dist: winrt-Windows.Media.Core[all]==3.
|
|
26
|
-
Requires-Dist: winrt-Windows.Media.Devices[all]==3.
|
|
27
|
-
Requires-Dist: winrt-Windows.Media.Effects[all]==3.
|
|
28
|
-
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==3.
|
|
29
|
-
Requires-Dist: winrt-Windows.Security.Authentication.Web[all]==3.
|
|
30
|
-
Requires-Dist: winrt-Windows.Security.Credentials[all]==3.
|
|
31
|
-
Requires-Dist: winrt-Windows.Storage[all]==3.
|
|
32
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.
|
|
33
|
-
Requires-Dist: winrt-Windows.System[all]==3.
|
|
34
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Media[all]==3.2.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Media.Capture.Core[all]==3.2.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Media.Capture.Frames[all]==3.2.0; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.Media.Core[all]==3.2.0; extra == "all"
|
|
26
|
+
Requires-Dist: winrt-Windows.Media.Devices[all]==3.2.0; extra == "all"
|
|
27
|
+
Requires-Dist: winrt-Windows.Media.Effects[all]==3.2.0; extra == "all"
|
|
28
|
+
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==3.2.0; extra == "all"
|
|
29
|
+
Requires-Dist: winrt-Windows.Security.Authentication.Web[all]==3.2.0; extra == "all"
|
|
30
|
+
Requires-Dist: winrt-Windows.Security.Credentials[all]==3.2.0; extra == "all"
|
|
31
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.2.0; extra == "all"
|
|
32
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.2.0; extra == "all"
|
|
33
|
+
Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
|
|
34
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.2.0; extra == "all"
|
|
35
35
|
|
|
36
36
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
37
37
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Devices.Enumeration[all]==3.2.0
|
|
4
|
+
winrt-Windows.Foundation[all]==3.2.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==3.2.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.2.0
|
|
7
|
+
winrt-Windows.Graphics.Imaging[all]==3.2.0
|
|
8
|
+
winrt-Windows.Media[all]==3.2.0
|
|
9
|
+
winrt-Windows.Media.Capture.Core[all]==3.2.0
|
|
10
|
+
winrt-Windows.Media.Capture.Frames[all]==3.2.0
|
|
11
|
+
winrt-Windows.Media.Core[all]==3.2.0
|
|
12
|
+
winrt-Windows.Media.Devices[all]==3.2.0
|
|
13
|
+
winrt-Windows.Media.Effects[all]==3.2.0
|
|
14
|
+
winrt-Windows.Media.MediaProperties[all]==3.2.0
|
|
15
|
+
winrt-Windows.Security.Authentication.Web[all]==3.2.0
|
|
16
|
+
winrt-Windows.Security.Credentials[all]==3.2.0
|
|
17
|
+
winrt-Windows.Storage[all]==3.2.0
|
|
18
|
+
winrt-Windows.Storage.Streams[all]==3.2.0
|
|
19
|
+
winrt-Windows.System[all]==3.2.0
|
|
20
|
+
winrt-Windows.UI.WindowManagement[all]==3.2.0
|
{winrt_windows_media_capture-3.1.0 → winrt_windows_media_capture-3.2.0}/py.Windows.Media.Capture.cpp
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Media.Capture.h"
|
|
4
4
|
|
|
@@ -26278,447 +26278,6 @@ namespace py::cpp::Windows::Media::Capture
|
|
|
26278
26278
|
Py_TPFLAGS_DEFAULT,
|
|
26279
26279
|
_type_slots_PhotoConfirmationCapturedEventArgs};
|
|
26280
26280
|
|
|
26281
|
-
// ----- ScreenCapture class --------------------
|
|
26282
|
-
|
|
26283
|
-
static PyObject* _new_ScreenCapture(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
26284
|
-
{
|
|
26285
|
-
static_assert(py::py_type<winrt::Windows::Media::Capture::ScreenCapture>::type_name);
|
|
26286
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::Media::Capture::ScreenCapture>::type_name);
|
|
26287
|
-
return nullptr;
|
|
26288
|
-
}
|
|
26289
|
-
|
|
26290
|
-
static void _dealloc_ScreenCapture(py::wrapper::Windows::Media::Capture::ScreenCapture* self) noexcept
|
|
26291
|
-
{
|
|
26292
|
-
auto tp = Py_TYPE(self);
|
|
26293
|
-
std::destroy_at(&self->obj);
|
|
26294
|
-
tp->tp_free(self);
|
|
26295
|
-
Py_DECREF(tp);
|
|
26296
|
-
}
|
|
26297
|
-
|
|
26298
|
-
static PyObject* ScreenCapture_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
|
|
26299
|
-
{
|
|
26300
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
26301
|
-
|
|
26302
|
-
if (arg_count == 0)
|
|
26303
|
-
{
|
|
26304
|
-
try
|
|
26305
|
-
{
|
|
26306
|
-
static std::optional<bool> is_overload_present{};
|
|
26307
|
-
|
|
26308
|
-
if (!is_overload_present.has_value())
|
|
26309
|
-
{
|
|
26310
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Capture.ScreenCapture", L"GetForCurrentView", 0);
|
|
26311
|
-
}
|
|
26312
|
-
|
|
26313
|
-
if (!is_overload_present.value())
|
|
26314
|
-
{
|
|
26315
|
-
py::set_arg_count_version_error(0);
|
|
26316
|
-
return nullptr;
|
|
26317
|
-
}
|
|
26318
|
-
|
|
26319
|
-
return py::convert([&]()
|
|
26320
|
-
{
|
|
26321
|
-
auto _gil = release_gil();
|
|
26322
|
-
return winrt::Windows::Media::Capture::ScreenCapture::GetForCurrentView();
|
|
26323
|
-
}());
|
|
26324
|
-
}
|
|
26325
|
-
catch (...)
|
|
26326
|
-
{
|
|
26327
|
-
py::to_PyErr();
|
|
26328
|
-
return nullptr;
|
|
26329
|
-
}
|
|
26330
|
-
}
|
|
26331
|
-
else
|
|
26332
|
-
{
|
|
26333
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
26334
|
-
return nullptr;
|
|
26335
|
-
}
|
|
26336
|
-
}
|
|
26337
|
-
|
|
26338
|
-
static PyObject* ScreenCapture_get_AudioSource(py::wrapper::Windows::Media::Capture::ScreenCapture* self, void* /*unused*/) noexcept
|
|
26339
|
-
{
|
|
26340
|
-
try
|
|
26341
|
-
{
|
|
26342
|
-
static std::optional<bool> is_property_present{};
|
|
26343
|
-
|
|
26344
|
-
if (!is_property_present.has_value())
|
|
26345
|
-
{
|
|
26346
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.ScreenCapture", L"AudioSource");
|
|
26347
|
-
}
|
|
26348
|
-
|
|
26349
|
-
if (!is_property_present.value())
|
|
26350
|
-
{
|
|
26351
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26352
|
-
return nullptr;
|
|
26353
|
-
}
|
|
26354
|
-
|
|
26355
|
-
return py::convert([&]()
|
|
26356
|
-
{
|
|
26357
|
-
auto _gil = release_gil();
|
|
26358
|
-
return self->obj.AudioSource();
|
|
26359
|
-
}());
|
|
26360
|
-
}
|
|
26361
|
-
catch (...)
|
|
26362
|
-
{
|
|
26363
|
-
py::to_PyErr();
|
|
26364
|
-
return nullptr;
|
|
26365
|
-
}
|
|
26366
|
-
}
|
|
26367
|
-
|
|
26368
|
-
static PyObject* ScreenCapture_get_IsAudioSuspended(py::wrapper::Windows::Media::Capture::ScreenCapture* self, void* /*unused*/) noexcept
|
|
26369
|
-
{
|
|
26370
|
-
try
|
|
26371
|
-
{
|
|
26372
|
-
static std::optional<bool> is_property_present{};
|
|
26373
|
-
|
|
26374
|
-
if (!is_property_present.has_value())
|
|
26375
|
-
{
|
|
26376
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.ScreenCapture", L"IsAudioSuspended");
|
|
26377
|
-
}
|
|
26378
|
-
|
|
26379
|
-
if (!is_property_present.value())
|
|
26380
|
-
{
|
|
26381
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26382
|
-
return nullptr;
|
|
26383
|
-
}
|
|
26384
|
-
|
|
26385
|
-
return py::convert([&]()
|
|
26386
|
-
{
|
|
26387
|
-
auto _gil = release_gil();
|
|
26388
|
-
return self->obj.IsAudioSuspended();
|
|
26389
|
-
}());
|
|
26390
|
-
}
|
|
26391
|
-
catch (...)
|
|
26392
|
-
{
|
|
26393
|
-
py::to_PyErr();
|
|
26394
|
-
return nullptr;
|
|
26395
|
-
}
|
|
26396
|
-
}
|
|
26397
|
-
|
|
26398
|
-
static PyObject* ScreenCapture_get_IsVideoSuspended(py::wrapper::Windows::Media::Capture::ScreenCapture* self, void* /*unused*/) noexcept
|
|
26399
|
-
{
|
|
26400
|
-
try
|
|
26401
|
-
{
|
|
26402
|
-
static std::optional<bool> is_property_present{};
|
|
26403
|
-
|
|
26404
|
-
if (!is_property_present.has_value())
|
|
26405
|
-
{
|
|
26406
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.ScreenCapture", L"IsVideoSuspended");
|
|
26407
|
-
}
|
|
26408
|
-
|
|
26409
|
-
if (!is_property_present.value())
|
|
26410
|
-
{
|
|
26411
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26412
|
-
return nullptr;
|
|
26413
|
-
}
|
|
26414
|
-
|
|
26415
|
-
return py::convert([&]()
|
|
26416
|
-
{
|
|
26417
|
-
auto _gil = release_gil();
|
|
26418
|
-
return self->obj.IsVideoSuspended();
|
|
26419
|
-
}());
|
|
26420
|
-
}
|
|
26421
|
-
catch (...)
|
|
26422
|
-
{
|
|
26423
|
-
py::to_PyErr();
|
|
26424
|
-
return nullptr;
|
|
26425
|
-
}
|
|
26426
|
-
}
|
|
26427
|
-
|
|
26428
|
-
static PyObject* ScreenCapture_get_VideoSource(py::wrapper::Windows::Media::Capture::ScreenCapture* self, void* /*unused*/) noexcept
|
|
26429
|
-
{
|
|
26430
|
-
try
|
|
26431
|
-
{
|
|
26432
|
-
static std::optional<bool> is_property_present{};
|
|
26433
|
-
|
|
26434
|
-
if (!is_property_present.has_value())
|
|
26435
|
-
{
|
|
26436
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.ScreenCapture", L"VideoSource");
|
|
26437
|
-
}
|
|
26438
|
-
|
|
26439
|
-
if (!is_property_present.value())
|
|
26440
|
-
{
|
|
26441
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26442
|
-
return nullptr;
|
|
26443
|
-
}
|
|
26444
|
-
|
|
26445
|
-
return py::convert([&]()
|
|
26446
|
-
{
|
|
26447
|
-
auto _gil = release_gil();
|
|
26448
|
-
return self->obj.VideoSource();
|
|
26449
|
-
}());
|
|
26450
|
-
}
|
|
26451
|
-
catch (...)
|
|
26452
|
-
{
|
|
26453
|
-
py::to_PyErr();
|
|
26454
|
-
return nullptr;
|
|
26455
|
-
}
|
|
26456
|
-
}
|
|
26457
|
-
|
|
26458
|
-
static PyObject* ScreenCapture_add_SourceSuspensionChanged(py::wrapper::Windows::Media::Capture::ScreenCapture* self, PyObject* arg) noexcept
|
|
26459
|
-
{
|
|
26460
|
-
try
|
|
26461
|
-
{
|
|
26462
|
-
static std::optional<bool> is_event_present{};
|
|
26463
|
-
|
|
26464
|
-
if (!is_event_present.has_value())
|
|
26465
|
-
{
|
|
26466
|
-
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.Capture.ScreenCapture", L"SourceSuspensionChanged");
|
|
26467
|
-
}
|
|
26468
|
-
|
|
26469
|
-
if (!is_event_present.value())
|
|
26470
|
-
{
|
|
26471
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
26472
|
-
return nullptr;
|
|
26473
|
-
}
|
|
26474
|
-
|
|
26475
|
-
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Media::Capture::ScreenCapture, winrt::Windows::Media::Capture::SourceSuspensionChangedEventArgs>>(arg);
|
|
26476
|
-
|
|
26477
|
-
return py::convert([&]()
|
|
26478
|
-
{
|
|
26479
|
-
auto _gil = release_gil();
|
|
26480
|
-
return self->obj.SourceSuspensionChanged(param0);
|
|
26481
|
-
}());
|
|
26482
|
-
}
|
|
26483
|
-
catch (...)
|
|
26484
|
-
{
|
|
26485
|
-
py::to_PyErr();
|
|
26486
|
-
return nullptr;
|
|
26487
|
-
}
|
|
26488
|
-
}
|
|
26489
|
-
|
|
26490
|
-
static PyObject* ScreenCapture_remove_SourceSuspensionChanged(py::wrapper::Windows::Media::Capture::ScreenCapture* self, PyObject* arg) noexcept
|
|
26491
|
-
{
|
|
26492
|
-
try
|
|
26493
|
-
{
|
|
26494
|
-
static std::optional<bool> is_event_present{};
|
|
26495
|
-
|
|
26496
|
-
if (!is_event_present.has_value())
|
|
26497
|
-
{
|
|
26498
|
-
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.Capture.ScreenCapture", L"SourceSuspensionChanged");
|
|
26499
|
-
}
|
|
26500
|
-
|
|
26501
|
-
if (!is_event_present.value())
|
|
26502
|
-
{
|
|
26503
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
26504
|
-
return nullptr;
|
|
26505
|
-
}
|
|
26506
|
-
|
|
26507
|
-
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
26508
|
-
|
|
26509
|
-
{
|
|
26510
|
-
auto _gil = release_gil();
|
|
26511
|
-
self->obj.SourceSuspensionChanged(param0);
|
|
26512
|
-
}
|
|
26513
|
-
|
|
26514
|
-
Py_RETURN_NONE;
|
|
26515
|
-
}
|
|
26516
|
-
catch (...)
|
|
26517
|
-
{
|
|
26518
|
-
py::to_PyErr();
|
|
26519
|
-
return nullptr;
|
|
26520
|
-
}
|
|
26521
|
-
}
|
|
26522
|
-
|
|
26523
|
-
static PyObject* _assign_array_ScreenCapture(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
26524
|
-
{
|
|
26525
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::Media::Capture::ScreenCapture>>();
|
|
26526
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
26527
|
-
{
|
|
26528
|
-
return nullptr;
|
|
26529
|
-
}
|
|
26530
|
-
Py_RETURN_NONE;
|
|
26531
|
-
}
|
|
26532
|
-
|
|
26533
|
-
static PyObject* _from_ScreenCapture(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
26534
|
-
{
|
|
26535
|
-
try
|
|
26536
|
-
{
|
|
26537
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
26538
|
-
return py::convert(return_value.as<winrt::Windows::Media::Capture::ScreenCapture>());
|
|
26539
|
-
}
|
|
26540
|
-
catch (...)
|
|
26541
|
-
{
|
|
26542
|
-
py::to_PyErr();
|
|
26543
|
-
return nullptr;
|
|
26544
|
-
}
|
|
26545
|
-
}
|
|
26546
|
-
|
|
26547
|
-
static PyMethodDef _methods_ScreenCapture[] = {
|
|
26548
|
-
{ "add_source_suspension_changed", reinterpret_cast<PyCFunction>(ScreenCapture_add_SourceSuspensionChanged), METH_O, nullptr },
|
|
26549
|
-
{ "remove_source_suspension_changed", reinterpret_cast<PyCFunction>(ScreenCapture_remove_SourceSuspensionChanged), METH_O, nullptr },
|
|
26550
|
-
{ "_assign_array_", _assign_array_ScreenCapture, METH_O | METH_STATIC, nullptr },
|
|
26551
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_ScreenCapture), METH_O | METH_STATIC, nullptr },
|
|
26552
|
-
{ }};
|
|
26553
|
-
|
|
26554
|
-
static PyGetSetDef _getset_ScreenCapture[] = {
|
|
26555
|
-
{ "audio_source", reinterpret_cast<getter>(ScreenCapture_get_AudioSource), nullptr, nullptr, nullptr },
|
|
26556
|
-
{ "is_audio_suspended", reinterpret_cast<getter>(ScreenCapture_get_IsAudioSuspended), nullptr, nullptr, nullptr },
|
|
26557
|
-
{ "is_video_suspended", reinterpret_cast<getter>(ScreenCapture_get_IsVideoSuspended), nullptr, nullptr, nullptr },
|
|
26558
|
-
{ "video_source", reinterpret_cast<getter>(ScreenCapture_get_VideoSource), nullptr, nullptr, nullptr },
|
|
26559
|
-
{ }};
|
|
26560
|
-
|
|
26561
|
-
static PyType_Slot _type_slots_ScreenCapture[] = {
|
|
26562
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_ScreenCapture) },
|
|
26563
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ScreenCapture) },
|
|
26564
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ScreenCapture) },
|
|
26565
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ScreenCapture) },
|
|
26566
|
-
{ }};
|
|
26567
|
-
|
|
26568
|
-
static PyType_Spec type_spec_ScreenCapture = {
|
|
26569
|
-
"winrt._winrt_windows_media_capture.ScreenCapture",
|
|
26570
|
-
sizeof(py::wrapper::Windows::Media::Capture::ScreenCapture),
|
|
26571
|
-
0,
|
|
26572
|
-
Py_TPFLAGS_DEFAULT,
|
|
26573
|
-
_type_slots_ScreenCapture};
|
|
26574
|
-
|
|
26575
|
-
static PyGetSetDef getset_ScreenCapture_Static[] = {
|
|
26576
|
-
{ }};
|
|
26577
|
-
|
|
26578
|
-
static PyMethodDef methods_ScreenCapture_Static[] = {
|
|
26579
|
-
{ "get_for_current_view", reinterpret_cast<PyCFunction>(ScreenCapture_GetForCurrentView), METH_VARARGS, nullptr },
|
|
26580
|
-
{ }};
|
|
26581
|
-
|
|
26582
|
-
static PyType_Slot type_slots_ScreenCapture_Static[] =
|
|
26583
|
-
{
|
|
26584
|
-
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
26585
|
-
{ Py_tp_getset, reinterpret_cast<void*>(getset_ScreenCapture_Static) },
|
|
26586
|
-
{ Py_tp_methods, reinterpret_cast<void*>(methods_ScreenCapture_Static) },
|
|
26587
|
-
{ }
|
|
26588
|
-
};
|
|
26589
|
-
|
|
26590
|
-
static PyType_Spec type_spec_ScreenCapture_Static = {
|
|
26591
|
-
"winrt._winrt_windows_media_capture.ScreenCapture_Static",
|
|
26592
|
-
static_cast<int>(PyType_Type.tp_basicsize),
|
|
26593
|
-
static_cast<int>(PyType_Type.tp_itemsize),
|
|
26594
|
-
Py_TPFLAGS_DEFAULT,
|
|
26595
|
-
type_slots_ScreenCapture_Static};
|
|
26596
|
-
|
|
26597
|
-
// ----- SourceSuspensionChangedEventArgs class --------------------
|
|
26598
|
-
|
|
26599
|
-
static PyObject* _new_SourceSuspensionChangedEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
26600
|
-
{
|
|
26601
|
-
static_assert(py::py_type<winrt::Windows::Media::Capture::SourceSuspensionChangedEventArgs>::type_name);
|
|
26602
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::Media::Capture::SourceSuspensionChangedEventArgs>::type_name);
|
|
26603
|
-
return nullptr;
|
|
26604
|
-
}
|
|
26605
|
-
|
|
26606
|
-
static void _dealloc_SourceSuspensionChangedEventArgs(py::wrapper::Windows::Media::Capture::SourceSuspensionChangedEventArgs* self) noexcept
|
|
26607
|
-
{
|
|
26608
|
-
auto tp = Py_TYPE(self);
|
|
26609
|
-
std::destroy_at(&self->obj);
|
|
26610
|
-
tp->tp_free(self);
|
|
26611
|
-
Py_DECREF(tp);
|
|
26612
|
-
}
|
|
26613
|
-
|
|
26614
|
-
static PyObject* SourceSuspensionChangedEventArgs_get_IsAudioSuspended(py::wrapper::Windows::Media::Capture::SourceSuspensionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
26615
|
-
{
|
|
26616
|
-
try
|
|
26617
|
-
{
|
|
26618
|
-
static std::optional<bool> is_property_present{};
|
|
26619
|
-
|
|
26620
|
-
if (!is_property_present.has_value())
|
|
26621
|
-
{
|
|
26622
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.SourceSuspensionChangedEventArgs", L"IsAudioSuspended");
|
|
26623
|
-
}
|
|
26624
|
-
|
|
26625
|
-
if (!is_property_present.value())
|
|
26626
|
-
{
|
|
26627
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26628
|
-
return nullptr;
|
|
26629
|
-
}
|
|
26630
|
-
|
|
26631
|
-
return py::convert([&]()
|
|
26632
|
-
{
|
|
26633
|
-
auto _gil = release_gil();
|
|
26634
|
-
return self->obj.IsAudioSuspended();
|
|
26635
|
-
}());
|
|
26636
|
-
}
|
|
26637
|
-
catch (...)
|
|
26638
|
-
{
|
|
26639
|
-
py::to_PyErr();
|
|
26640
|
-
return nullptr;
|
|
26641
|
-
}
|
|
26642
|
-
}
|
|
26643
|
-
|
|
26644
|
-
static PyObject* SourceSuspensionChangedEventArgs_get_IsVideoSuspended(py::wrapper::Windows::Media::Capture::SourceSuspensionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
26645
|
-
{
|
|
26646
|
-
try
|
|
26647
|
-
{
|
|
26648
|
-
static std::optional<bool> is_property_present{};
|
|
26649
|
-
|
|
26650
|
-
if (!is_property_present.has_value())
|
|
26651
|
-
{
|
|
26652
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Capture.SourceSuspensionChangedEventArgs", L"IsVideoSuspended");
|
|
26653
|
-
}
|
|
26654
|
-
|
|
26655
|
-
if (!is_property_present.value())
|
|
26656
|
-
{
|
|
26657
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
26658
|
-
return nullptr;
|
|
26659
|
-
}
|
|
26660
|
-
|
|
26661
|
-
return py::convert([&]()
|
|
26662
|
-
{
|
|
26663
|
-
auto _gil = release_gil();
|
|
26664
|
-
return self->obj.IsVideoSuspended();
|
|
26665
|
-
}());
|
|
26666
|
-
}
|
|
26667
|
-
catch (...)
|
|
26668
|
-
{
|
|
26669
|
-
py::to_PyErr();
|
|
26670
|
-
return nullptr;
|
|
26671
|
-
}
|
|
26672
|
-
}
|
|
26673
|
-
|
|
26674
|
-
static PyObject* _assign_array_SourceSuspensionChangedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
26675
|
-
{
|
|
26676
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::Media::Capture::SourceSuspensionChangedEventArgs>>();
|
|
26677
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
26678
|
-
{
|
|
26679
|
-
return nullptr;
|
|
26680
|
-
}
|
|
26681
|
-
Py_RETURN_NONE;
|
|
26682
|
-
}
|
|
26683
|
-
|
|
26684
|
-
static PyObject* _from_SourceSuspensionChangedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
26685
|
-
{
|
|
26686
|
-
try
|
|
26687
|
-
{
|
|
26688
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
26689
|
-
return py::convert(return_value.as<winrt::Windows::Media::Capture::SourceSuspensionChangedEventArgs>());
|
|
26690
|
-
}
|
|
26691
|
-
catch (...)
|
|
26692
|
-
{
|
|
26693
|
-
py::to_PyErr();
|
|
26694
|
-
return nullptr;
|
|
26695
|
-
}
|
|
26696
|
-
}
|
|
26697
|
-
|
|
26698
|
-
static PyMethodDef _methods_SourceSuspensionChangedEventArgs[] = {
|
|
26699
|
-
{ "_assign_array_", _assign_array_SourceSuspensionChangedEventArgs, METH_O | METH_STATIC, nullptr },
|
|
26700
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_SourceSuspensionChangedEventArgs), METH_O | METH_STATIC, nullptr },
|
|
26701
|
-
{ }};
|
|
26702
|
-
|
|
26703
|
-
static PyGetSetDef _getset_SourceSuspensionChangedEventArgs[] = {
|
|
26704
|
-
{ "is_audio_suspended", reinterpret_cast<getter>(SourceSuspensionChangedEventArgs_get_IsAudioSuspended), nullptr, nullptr, nullptr },
|
|
26705
|
-
{ "is_video_suspended", reinterpret_cast<getter>(SourceSuspensionChangedEventArgs_get_IsVideoSuspended), nullptr, nullptr, nullptr },
|
|
26706
|
-
{ }};
|
|
26707
|
-
|
|
26708
|
-
static PyType_Slot _type_slots_SourceSuspensionChangedEventArgs[] = {
|
|
26709
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_SourceSuspensionChangedEventArgs) },
|
|
26710
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SourceSuspensionChangedEventArgs) },
|
|
26711
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SourceSuspensionChangedEventArgs) },
|
|
26712
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SourceSuspensionChangedEventArgs) },
|
|
26713
|
-
{ }};
|
|
26714
|
-
|
|
26715
|
-
static PyType_Spec type_spec_SourceSuspensionChangedEventArgs = {
|
|
26716
|
-
"winrt._winrt_windows_media_capture.SourceSuspensionChangedEventArgs",
|
|
26717
|
-
sizeof(py::wrapper::Windows::Media::Capture::SourceSuspensionChangedEventArgs),
|
|
26718
|
-
0,
|
|
26719
|
-
Py_TPFLAGS_DEFAULT,
|
|
26720
|
-
_type_slots_SourceSuspensionChangedEventArgs};
|
|
26721
|
-
|
|
26722
26281
|
// ----- VideoStreamConfiguration class --------------------
|
|
26723
26282
|
|
|
26724
26283
|
static PyObject* _new_VideoStreamConfiguration(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
@@ -27670,30 +27229,6 @@ PyMODINIT_FUNC PyInit__winrt_windows_media_capture(void) noexcept
|
|
|
27670
27229
|
return nullptr;
|
|
27671
27230
|
}
|
|
27672
27231
|
|
|
27673
|
-
py::pyobj_handle ScreenCapture_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
27674
|
-
if (!ScreenCapture_Static_bases)
|
|
27675
|
-
{
|
|
27676
|
-
return nullptr;
|
|
27677
|
-
}
|
|
27678
|
-
|
|
27679
|
-
py::pyobj_handle type_ScreenCapture_Static{PyType_FromSpecWithBases(&type_spec_ScreenCapture_Static, ScreenCapture_Static_bases.get())};
|
|
27680
|
-
if (!type_ScreenCapture_Static)
|
|
27681
|
-
{
|
|
27682
|
-
return nullptr;
|
|
27683
|
-
}
|
|
27684
|
-
|
|
27685
|
-
py::pytype_handle ScreenCapture_type{py::register_python_type(module.get(), &type_spec_ScreenCapture, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ScreenCapture_Static.get()))};
|
|
27686
|
-
if (!ScreenCapture_type)
|
|
27687
|
-
{
|
|
27688
|
-
return nullptr;
|
|
27689
|
-
}
|
|
27690
|
-
|
|
27691
|
-
py::pytype_handle SourceSuspensionChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_SourceSuspensionChangedEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
27692
|
-
if (!SourceSuspensionChangedEventArgs_type)
|
|
27693
|
-
{
|
|
27694
|
-
return nullptr;
|
|
27695
|
-
}
|
|
27696
|
-
|
|
27697
27232
|
py::pytype_handle VideoStreamConfiguration_type{py::register_python_type(module.get(), &type_spec_VideoStreamConfiguration, object_bases.get(), inspectable_meta_type)};
|
|
27698
27233
|
if (!VideoStreamConfiguration_type)
|
|
27699
27234
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==3.
|
|
3
|
+
winrt-runtime==3.2.0
|
|
@@ -11,6 +11,8 @@ class build_ext_ex(build_ext):
|
|
|
11
11
|
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
12
|
elif self.compiler.compiler_type == "mingw32":
|
|
13
13
|
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
# GCC 15 complains about some things that it didn't in the past
|
|
15
|
+
ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
|
|
14
16
|
ext.extra_link_args = ["-loleaut32"]
|
|
15
17
|
else:
|
|
16
18
|
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -437,7 +437,7 @@ class AppBroadcastPreviewStreamReader(winrt.system.Object):
|
|
|
437
437
|
class AppBroadcastPreviewStreamVideoFrame(winrt.system.Object):
|
|
438
438
|
# Windows.Storage.Streams.IBuffer Windows.Media.Capture.AppBroadcastPreviewStreamVideoFrame::get_VideoBuffer()
|
|
439
439
|
@_property
|
|
440
|
-
def video_buffer(self) ->
|
|
440
|
+
def video_buffer(self) -> winrt.system.Buffer: ...
|
|
441
441
|
# Windows.Media.Capture.AppBroadcastPreviewStreamVideoHeader Windows.Media.Capture.AppBroadcastPreviewStreamVideoFrame::get_VideoHeader()
|
|
442
442
|
@_property
|
|
443
443
|
def video_header(self) -> AppBroadcastPreviewStreamVideoHeader: ...
|
|
@@ -651,7 +651,7 @@ class AppBroadcastState(winrt.system.Object):
|
|
|
651
651
|
class AppBroadcastStreamAudioFrame(winrt.system.Object):
|
|
652
652
|
# Windows.Storage.Streams.IBuffer Windows.Media.Capture.AppBroadcastStreamAudioFrame::get_AudioBuffer()
|
|
653
653
|
@_property
|
|
654
|
-
def audio_buffer(self) ->
|
|
654
|
+
def audio_buffer(self) -> winrt.system.Buffer: ...
|
|
655
655
|
# Windows.Media.Capture.AppBroadcastStreamAudioHeader Windows.Media.Capture.AppBroadcastStreamAudioFrame::get_AudioHeader()
|
|
656
656
|
@_property
|
|
657
657
|
def audio_header(self) -> AppBroadcastStreamAudioHeader: ...
|
|
@@ -690,7 +690,7 @@ class AppBroadcastStreamReader(winrt.system.Object):
|
|
|
690
690
|
def remove_video_frame_arrived(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
691
691
|
# Windows.Storage.Streams.IBuffer Windows.Media.Capture.AppBroadcastStreamReader::get_AudioAacSequence()
|
|
692
692
|
@_property
|
|
693
|
-
def audio_aac_sequence(self) ->
|
|
693
|
+
def audio_aac_sequence(self) -> winrt.system.Buffer: ...
|
|
694
694
|
# System.UInt32 Windows.Media.Capture.AppBroadcastStreamReader::get_AudioBitrate()
|
|
695
695
|
@_property
|
|
696
696
|
def audio_bitrate(self) -> winrt.system.UInt32: ...
|
|
@@ -720,7 +720,7 @@ class AppBroadcastStreamStateChangedEventArgs(winrt.system.Object):
|
|
|
720
720
|
class AppBroadcastStreamVideoFrame(winrt.system.Object):
|
|
721
721
|
# Windows.Storage.Streams.IBuffer Windows.Media.Capture.AppBroadcastStreamVideoFrame::get_VideoBuffer()
|
|
722
722
|
@_property
|
|
723
|
-
def video_buffer(self) ->
|
|
723
|
+
def video_buffer(self) -> winrt.system.Buffer: ...
|
|
724
724
|
# Windows.Media.Capture.AppBroadcastStreamVideoHeader Windows.Media.Capture.AppBroadcastStreamVideoFrame::get_VideoHeader()
|
|
725
725
|
@_property
|
|
726
726
|
def video_header(self) -> AppBroadcastStreamVideoHeader: ...
|
|
@@ -1280,11 +1280,11 @@ class CapturedFrame(winrt.system.Object, windows_storage_streams.IRandomAccessSt
|
|
|
1280
1280
|
# Windows.Storage.Streams.IOutputStream Windows.Media.Capture.CapturedFrame::GetOutputStreamAt(System.UInt64)
|
|
1281
1281
|
def get_output_stream_at(self, position: winrt.system.UInt64, /) -> windows_storage_streams.IOutputStream: ...
|
|
1282
1282
|
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Storage.Streams.IBuffer,System.UInt32> Windows.Media.Capture.CapturedFrame::ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
|
|
1283
|
-
def read_async(self, buffer:
|
|
1283
|
+
def read_async(self, buffer: winrt.system.Buffer, count: winrt.system.UInt32, options: windows_storage_streams.InputStreamOptions, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.Buffer, winrt.system.UInt32]: ...
|
|
1284
1284
|
# System.Void Windows.Media.Capture.CapturedFrame::Seek(System.UInt64)
|
|
1285
1285
|
def seek(self, position: winrt.system.UInt64, /) -> None: ...
|
|
1286
1286
|
# Windows.Foundation.IAsyncOperationWithProgress`2<System.UInt32,System.UInt32> Windows.Media.Capture.CapturedFrame::WriteAsync(Windows.Storage.Streams.IBuffer)
|
|
1287
|
-
def write_async(self, buffer:
|
|
1287
|
+
def write_async(self, buffer: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
1288
1288
|
# System.UInt32 Windows.Media.Capture.CapturedFrame::get_Height()
|
|
1289
1289
|
@_property
|
|
1290
1290
|
def height(self) -> winrt.system.UInt32: ...
|
|
@@ -1941,39 +1941,6 @@ class PhotoConfirmationCapturedEventArgs(winrt.system.Object):
|
|
|
1941
1941
|
@_property
|
|
1942
1942
|
def frame(self) -> CapturedFrame: ...
|
|
1943
1943
|
|
|
1944
|
-
@typing.final
|
|
1945
|
-
class ScreenCapture_Static(winrt._winrt.IInspectable_Static):
|
|
1946
|
-
# Windows.Media.Capture.ScreenCapture Windows.Media.Capture.ScreenCapture::GetForCurrentView()
|
|
1947
|
-
def get_for_current_view(cls) -> ScreenCapture: ...
|
|
1948
|
-
|
|
1949
|
-
@typing.final
|
|
1950
|
-
class ScreenCapture(winrt.system.Object, metaclass=ScreenCapture_Static):
|
|
1951
|
-
# Windows.Foundation.EventRegistrationToken Windows.Media.Capture.ScreenCapture::add_SourceSuspensionChanged(Windows.Foundation.TypedEventHandler`2<Windows.Media.Capture.ScreenCapture,Windows.Media.Capture.SourceSuspensionChangedEventArgs>)
|
|
1952
|
-
def add_source_suspension_changed(self, handler: windows_foundation.TypedEventHandler[ScreenCapture, SourceSuspensionChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
1953
|
-
# System.Void Windows.Media.Capture.ScreenCapture::remove_SourceSuspensionChanged(Windows.Foundation.EventRegistrationToken)
|
|
1954
|
-
def remove_source_suspension_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
1955
|
-
# Windows.Media.Core.IMediaSource Windows.Media.Capture.ScreenCapture::get_AudioSource()
|
|
1956
|
-
@_property
|
|
1957
|
-
def audio_source(self) -> windows_media_core.IMediaSource: ...
|
|
1958
|
-
# System.Boolean Windows.Media.Capture.ScreenCapture::get_IsAudioSuspended()
|
|
1959
|
-
@_property
|
|
1960
|
-
def is_audio_suspended(self) -> bool: ...
|
|
1961
|
-
# System.Boolean Windows.Media.Capture.ScreenCapture::get_IsVideoSuspended()
|
|
1962
|
-
@_property
|
|
1963
|
-
def is_video_suspended(self) -> bool: ...
|
|
1964
|
-
# Windows.Media.Core.IMediaSource Windows.Media.Capture.ScreenCapture::get_VideoSource()
|
|
1965
|
-
@_property
|
|
1966
|
-
def video_source(self) -> windows_media_core.IMediaSource: ...
|
|
1967
|
-
|
|
1968
|
-
@typing.final
|
|
1969
|
-
class SourceSuspensionChangedEventArgs(winrt.system.Object):
|
|
1970
|
-
# System.Boolean Windows.Media.Capture.SourceSuspensionChangedEventArgs::get_IsAudioSuspended()
|
|
1971
|
-
@_property
|
|
1972
|
-
def is_audio_suspended(self) -> bool: ...
|
|
1973
|
-
# System.Boolean Windows.Media.Capture.SourceSuspensionChangedEventArgs::get_IsVideoSuspended()
|
|
1974
|
-
@_property
|
|
1975
|
-
def is_video_suspended(self) -> bool: ...
|
|
1976
|
-
|
|
1977
1944
|
@typing.final
|
|
1978
1945
|
class VideoStreamConfiguration(winrt.system.Object):
|
|
1979
1946
|
# Windows.Media.MediaProperties.VideoEncodingProperties Windows.Media.Capture.VideoStreamConfiguration::get_InputProperties()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
import typing
|
|
@@ -78,8 +78,6 @@ from winrt._winrt_windows_media_capture import (
|
|
|
78
78
|
OptionalReferencePhotoCapturedEventArgs,
|
|
79
79
|
PhotoCapturedEventArgs,
|
|
80
80
|
PhotoConfirmationCapturedEventArgs,
|
|
81
|
-
ScreenCapture,
|
|
82
|
-
SourceSuspensionChangedEventArgs,
|
|
83
81
|
VideoStreamConfiguration,
|
|
84
82
|
)
|
|
85
83
|
|
|
@@ -200,8 +198,6 @@ __all__ = [
|
|
|
200
198
|
"OptionalReferencePhotoCapturedEventArgs",
|
|
201
199
|
"PhotoCapturedEventArgs",
|
|
202
200
|
"PhotoConfirmationCapturedEventArgs",
|
|
203
|
-
"ScreenCapture",
|
|
204
|
-
"SourceSuspensionChangedEventArgs",
|
|
205
201
|
"VideoStreamConfiguration",
|
|
206
202
|
"MediaCaptureFailedEventHandler",
|
|
207
203
|
"RecordLimitationExceededEventHandler",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Media.Capture
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,26 +12,26 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.
|
|
15
|
+
Requires-Dist: winrt-runtime==3.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.
|
|
21
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.
|
|
22
|
-
Requires-Dist: winrt-Windows.Media[all]==3.
|
|
23
|
-
Requires-Dist: winrt-Windows.Media.Capture.Core[all]==3.
|
|
24
|
-
Requires-Dist: winrt-Windows.Media.Capture.Frames[all]==3.
|
|
25
|
-
Requires-Dist: winrt-Windows.Media.Core[all]==3.
|
|
26
|
-
Requires-Dist: winrt-Windows.Media.Devices[all]==3.
|
|
27
|
-
Requires-Dist: winrt-Windows.Media.Effects[all]==3.
|
|
28
|
-
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==3.
|
|
29
|
-
Requires-Dist: winrt-Windows.Security.Authentication.Web[all]==3.
|
|
30
|
-
Requires-Dist: winrt-Windows.Security.Credentials[all]==3.
|
|
31
|
-
Requires-Dist: winrt-Windows.Storage[all]==3.
|
|
32
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.
|
|
33
|
-
Requires-Dist: winrt-Windows.System[all]==3.
|
|
34
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Media[all]==3.2.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Media.Capture.Core[all]==3.2.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Media.Capture.Frames[all]==3.2.0; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.Media.Core[all]==3.2.0; extra == "all"
|
|
26
|
+
Requires-Dist: winrt-Windows.Media.Devices[all]==3.2.0; extra == "all"
|
|
27
|
+
Requires-Dist: winrt-Windows.Media.Effects[all]==3.2.0; extra == "all"
|
|
28
|
+
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==3.2.0; extra == "all"
|
|
29
|
+
Requires-Dist: winrt-Windows.Security.Authentication.Web[all]==3.2.0; extra == "all"
|
|
30
|
+
Requires-Dist: winrt-Windows.Security.Credentials[all]==3.2.0; extra == "all"
|
|
31
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.2.0; extra == "all"
|
|
32
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.2.0; extra == "all"
|
|
33
|
+
Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
|
|
34
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.2.0; extra == "all"
|
|
35
35
|
|
|
36
36
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
37
37
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
winrt-runtime==3.2.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Devices.Enumeration[all]==3.2.0
|
|
5
|
+
winrt-Windows.Foundation[all]==3.2.0
|
|
6
|
+
winrt-Windows.Foundation.Collections[all]==3.2.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.2.0
|
|
8
|
+
winrt-Windows.Graphics.Imaging[all]==3.2.0
|
|
9
|
+
winrt-Windows.Media[all]==3.2.0
|
|
10
|
+
winrt-Windows.Media.Capture.Core[all]==3.2.0
|
|
11
|
+
winrt-Windows.Media.Capture.Frames[all]==3.2.0
|
|
12
|
+
winrt-Windows.Media.Core[all]==3.2.0
|
|
13
|
+
winrt-Windows.Media.Devices[all]==3.2.0
|
|
14
|
+
winrt-Windows.Media.Effects[all]==3.2.0
|
|
15
|
+
winrt-Windows.Media.MediaProperties[all]==3.2.0
|
|
16
|
+
winrt-Windows.Security.Authentication.Web[all]==3.2.0
|
|
17
|
+
winrt-Windows.Security.Credentials[all]==3.2.0
|
|
18
|
+
winrt-Windows.Storage[all]==3.2.0
|
|
19
|
+
winrt-Windows.Storage.Streams[all]==3.2.0
|
|
20
|
+
winrt-Windows.System[all]==3.2.0
|
|
21
|
+
winrt-Windows.UI.WindowManagement[all]==3.2.0
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Devices.Enumeration[all]==3.1.0
|
|
4
|
-
winrt-Windows.Foundation[all]==3.1.0
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==3.1.0
|
|
6
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.1.0
|
|
7
|
-
winrt-Windows.Graphics.Imaging[all]==3.1.0
|
|
8
|
-
winrt-Windows.Media[all]==3.1.0
|
|
9
|
-
winrt-Windows.Media.Capture.Core[all]==3.1.0
|
|
10
|
-
winrt-Windows.Media.Capture.Frames[all]==3.1.0
|
|
11
|
-
winrt-Windows.Media.Core[all]==3.1.0
|
|
12
|
-
winrt-Windows.Media.Devices[all]==3.1.0
|
|
13
|
-
winrt-Windows.Media.Effects[all]==3.1.0
|
|
14
|
-
winrt-Windows.Media.MediaProperties[all]==3.1.0
|
|
15
|
-
winrt-Windows.Security.Authentication.Web[all]==3.1.0
|
|
16
|
-
winrt-Windows.Security.Credentials[all]==3.1.0
|
|
17
|
-
winrt-Windows.Storage[all]==3.1.0
|
|
18
|
-
winrt-Windows.Storage.Streams[all]==3.1.0
|
|
19
|
-
winrt-Windows.System[all]==3.1.0
|
|
20
|
-
winrt-Windows.UI.WindowManagement[all]==3.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.1.0
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
winrt-runtime==3.1.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Devices.Enumeration[all]==3.1.0
|
|
5
|
-
winrt-Windows.Foundation[all]==3.1.0
|
|
6
|
-
winrt-Windows.Foundation.Collections[all]==3.1.0
|
|
7
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==3.1.0
|
|
8
|
-
winrt-Windows.Graphics.Imaging[all]==3.1.0
|
|
9
|
-
winrt-Windows.Media[all]==3.1.0
|
|
10
|
-
winrt-Windows.Media.Capture.Core[all]==3.1.0
|
|
11
|
-
winrt-Windows.Media.Capture.Frames[all]==3.1.0
|
|
12
|
-
winrt-Windows.Media.Core[all]==3.1.0
|
|
13
|
-
winrt-Windows.Media.Devices[all]==3.1.0
|
|
14
|
-
winrt-Windows.Media.Effects[all]==3.1.0
|
|
15
|
-
winrt-Windows.Media.MediaProperties[all]==3.1.0
|
|
16
|
-
winrt-Windows.Security.Authentication.Web[all]==3.1.0
|
|
17
|
-
winrt-Windows.Security.Credentials[all]==3.1.0
|
|
18
|
-
winrt-Windows.Storage[all]==3.1.0
|
|
19
|
-
winrt-Windows.Storage.Streams[all]==3.1.0
|
|
20
|
-
winrt-Windows.System[all]==3.1.0
|
|
21
|
-
winrt-Windows.UI.WindowManagement[all]==3.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|