-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for macOS continuity camera #162
Comments
Translate it, I so lazy to do it myself))))) But it will solve your problem Кажется, что вы получаете предупреждение относительно использования устаревшего AVCaptureDeviceTypeExternal в своем коде на PyCharm. Чтобы исправить это, вам нужно обновить AVCaptureDeviceTypeExternal на AVCaptureDeviceTypeContinuityCamera и добавить NSCameraUseContinuityCameraDeviceType в ваш Info.plist файл. Вот как вы можете это сделать:
Это должно привести к устранению предупреждения. Если предупреждение продолжает появляться, убедитесь, что вы правильно изменили Info.plist файл и перезапустили PyCharm. Надеюсь, это поможет вам решить вашу проблему! Если у вас есть еще вопросы, не стесняйтесь задавать. |
I don't know the PList format, could you expand on what you mean by "Добавьте значение NSCameraUseContinuityCameraDeviceType к ключу NSCameraUsageDescription"? Could you show a concrete code example? |
This definitely used to work. I think a recent MacOS update broke this by changing the APIs for internal/external camera access. Should be relatively straightforward to fix this. This will probbaly be addressed when the MacOS portion of this crate gets rewritten, but the maintainer is currently busy and whle I would love to help, I'm also swamped and quite happy with my gstreamer solution for now. One day tho... |
I tried to test this crate on macOS on a mac without a camera, so I connected my iPhone using Continuity Camera to see what it could do. Running the capture example with the
list-devices
option however resulted in this:I would probably classify this as
P3
. It would be nice to have, but doesn't have a high priority as it is a pretty niche use-case. I would love to help, but am probably unable to do so, due to my lack of understanding of pure-Apple development (Objective-C, Swift, NS-Anything, etc).The text was updated successfully, but these errors were encountered: