No video

Take Pictures in Your App with CameraView for .NET MAUI

  Рет қаралды 4,027

Gerald Versluis

Gerald Versluis

Күн бұрын

CameraView is back! Freshly ported from Xamarin, we have an all new CameraView available for you for .NET MAUI. I made a quick follow-up video too with preventing memory leaks and selecting other cameras: • Select Different Camer...
With this first version of CameraView you can control zoom, flash, resolutions, which camera to use and actually take pictures! In this video I will show you how to get started yourself.
💝 Join this channel to get access to perks:
www.youtube.co...
Disclaimer: this channel is done on personal title, in my free time, and not officially affiliated with or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
🛑 Don't forget to subscribe to my channel for more cool content: www.youtube.co...
🐦 Follow me on Twitter: / jfversluis
🤝 Join the Discord server: / discord
🔗 Links
Sample Code Repo: github.com/jfv...
CameraView Documentation: learn.microsof...
⏱ Timestamps
00:00 - CameraView for .NET MAUI
00:13 - Amazing Community Contribution!
01:20 - Add CommunityToolkit.Maui.Camera Package
03:41 - Add Camera Permissions
05:14 - Implement CameraView in XAML
08:00 - Implement Image Capture
13:02 - CameraView Live Demo Android
14:15 - Change SelectedCamera
15:21 - Implement Zoom and Flash
17:54 - Learn More About Switching Cameras?
🎥 Video edited with DaVinci Resolve
🙋‍♂️ Also find my...
Blog: blog.verslu.is
All the rest: jfversluis.dev
#maui #cameraview #android #ios #dotnet #dotnetmaui #communitytoolkit

Пікірлер: 59
@jfversluis
@jfversluis Ай бұрын
A made a quick follow-up video too with preventing memory leaks and selecting other cameras: kzbin.info/www/bejne/gIbHl3Rto6uXjdk
@KenRossPhotography
@KenRossPhotography Ай бұрын
It would be a fun project/video to "Create a Pro Camera in MAUI" that leverages all the features for flash, camera selection, zoom, etc. Having a zoom slider on screen, toggle flash on/off, exposure control [if it has that], etc. 😀
@jfversluis
@jfversluis Ай бұрын
Voila! github.com/CommunityToolkit/Maui/tree/main/samples/CommunityToolkit.Maui.Sample/Pages/Views/CameraView
@adinwashere
@adinwashere Ай бұрын
looks great. To use this in a Maui Hybrid Blazor app we would need to use a XAML page or pop I guess?
@jfversluis
@jfversluis Ай бұрын
That is correct! You can take some inspiration from here: kzbin.info/www/bejne/aJXPna1qg792Zqs
@adinwashere
@adinwashere Ай бұрын
@@jfversluis Excellent
@ericritter46
@ericritter46 Ай бұрын
i love it. keep it up! I like that implementation is super easy and we dont need a mulititude of xmlns setup.
@alelasgrutas
@alelasgrutas Ай бұрын
amazed by this video, thank you very much, keep it up
@dustineatchel9442
@dustineatchel9442 Ай бұрын
Excellent work! Excited to give this a try. What about recording a video instead of capturing photos? Is that something that is planned for the future? Would be amazing to be able to select the frame rate / resolution when capturing video as well. 👍
@jfversluis
@jfversluis Ай бұрын
Something we absolutely want to do! We started with the core functionality but video is definitely one of the next things I think we'll do. Thanks!
@razgon
@razgon Ай бұрын
Nice, thank you!🙂
@kamilyt6541
@kamilyt6541 Ай бұрын
Yeah that's great I have also added this cameraview in my hybrid desktop app It is a xaml popup and I'm open that popup from the razor page So basically I have added that view in hybrid with xaml.. And can this work with DSLR? If I attach a DSLR to my desktop like flash and zoom i haven't try that so....
@jfversluis
@jfversluis Ай бұрын
Great! Oof I don't know about the DSLR! That would be very interesting... Please let me know if you decide to try!
@kamilyt6541
@kamilyt6541 Ай бұрын
@@jfversluis yes I have already did that but haven't try with the flash and zoom in the desktop app So okay I'll try to do in the DSLR 👍
@yoyokits
@yoyokits 24 күн бұрын
Thank you for this great camera control. Could this CameraView capture video? Please make tutorial for it.
@jfversluis
@jfversluis 24 күн бұрын
Not supported yet!
@lukehunter1154
@lukehunter1154 Ай бұрын
Great video! Followed the steps on an Android application, all works perfectly in debug mode but when building the application in Release mode the camera view will not zoom in. Any pointers?
@neosphoros5502
@neosphoros5502 Ай бұрын
Hello! Very nice video. Is it possible to place half transparent picture (PNG) as the overlay layer on the camera preview?
@jfversluis
@jfversluis Ай бұрын
Thank you! I would think so, just make sure the elements overlap by putting them both in the same column and row in a grid for example
@DeepWorksStudios
@DeepWorksStudios Ай бұрын
Great Update ^^
@annotations888
@annotations888 27 күн бұрын
Please make a video showing the shell.ItemTemplate with font icons and not images. Eveywhere developers use images but I need the it to work with font icons
@deaasaleh3613
@deaasaleh3613 Ай бұрын
Great job 👏
@jfversluis
@jfversluis Ай бұрын
Thank you! 😃
@liemnguyen3088
@liemnguyen3088 7 күн бұрын
After take a picture, how to put some text overlay the image and save to library, please!
@jfversluis
@jfversluis 7 күн бұрын
Probably use some image manipulation library. That is not specific to .NET MAUI
@hrishikeshgarud7177
@hrishikeshgarud7177 Ай бұрын
Can we get the raw camera feed?
@jfversluis
@jfversluis Ай бұрын
Not at the moment, something we want to do in the future
@nataliaszymczak4685
@nataliaszymczak4685 Ай бұрын
Anyone has working example with mvvm?
@JAMvideo1
@JAMvideo1 9 күн бұрын
Been building on Camera.Maui for a while. Do you suggest i switch to this new one?
@jfversluis
@jfversluis 9 күн бұрын
If Camera.MAUI works for you I don’t see any reason to switch
@LuisDulanto-gl6dm
@LuisDulanto-gl6dm Ай бұрын
I'm displaying the new Camera in a popup but if I close it and reopen, the camera is not displayed. How can I fix that?
@jfversluis
@jfversluis Ай бұрын
Sounds like you need to dispose of it properly and reinitialize
@xopabyteh
@xopabyteh Ай бұрын
The captured image doesn't match up with the preview? Could you please help me with that?
@jfversluis
@jfversluis Ай бұрын
What device are you using? Sounds like some delay?
@xopabyteh
@xopabyteh Ай бұрын
@@jfversluis Motorola defy. The captured image is larger than the one on the preview. Edit: it happens when the preview resolution aspect ratio doesnt exactly match the screen aspect ration.
@MartinMcDermot
@MartinMcDermot Ай бұрын
Nice thx
@jfversluis
@jfversluis Ай бұрын
You’re very welcome! Thank you for your support!
@paladinepaladine
@paladinepaladine Ай бұрын
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.' I'm getting this error everytime I take a photo. I've got to have missed something, but I can't see it (probably the wood for the trees). Can anyone help?
@jfversluis
@jfversluis Ай бұрын
Try wrapping it in a dispatcher.dispatch call
@paladinepaladine
@paladinepaladine Ай бұрын
@@jfversluis I was trying to make the cameraview invisible, make an imageview visible and pass the e.media across inside a single dispatcher.dispatch when it needed one for each. Should have realised that as it was the moment it didn't have one that the code failed. Many thanks for your help and the excellent videos you keep producing.
@alexali9967
@alexali9967 28 күн бұрын
I needed to add HeightRequest & WidthRequest to CameraView to preview the video
@jfversluis
@jfversluis 11 күн бұрын
Thanks for letting us know!
@DM-98
@DM-98 Ай бұрын
Could you change the methods to have suffix Async when they're async?
@jfversluis
@jfversluis Ай бұрын
Personally I don't like that. You can tell from the return type, it feels very on the nose to add Async to everything. So not likely!
@bity-bite
@bity-bite Ай бұрын
Better to be consistent with the BCL maybe? ​@jfversluis
@jfversluis
@jfversluis Ай бұрын
@@bity-bite be my guest!
@bity-bite
@bity-bite Ай бұрын
@@jfversluis Thanks! I'll try to make a PR as soon as I get my PC fixed 😃
@jfversluis
@jfversluis Ай бұрын
@bity-bite ha sorry. That was not what I meant. I’m not planning on changing this for this library or any of my libraries. Be my guest with applying it to your own code 😄
@tanakamawere
@tanakamawere Ай бұрын
Gerald, I think you underestimate the number of beginner devs who watch you videos 13:33 . Your "sample code" IS the code.😂😂 whatever bad practices you do, I will do the same because I don't know any better
@jfversluis
@jfversluis Ай бұрын
I know! I maybe should do better in that regard but then it also comes down to how people like to solve things and taste or what people perceive as being better... But you make a good point! I don't mean to talk down on your code. I will be more mindful of that, thank you!
@MrSuxor
@MrSuxor Ай бұрын
I swear when you come out with that cancelation token video in the cancelation token video you're going to ask if we want a cancelation token video to comment below!
@jfversluis
@jfversluis Ай бұрын
😂😂😂 cancellationtoken-ception
@SuperGulamali
@SuperGulamali Ай бұрын
Waiting for a year for the cancellation token video 😂
@jfversluis
@jfversluis Ай бұрын
😭😭😭😭
Adding Fingerprint Or Face Recognition To Your .NET MAUI App
18:00
Gerald Versluis
Рет қаралды 6 М.
Material Design & Free Controls for .NET MAUI with UraniumUI
16:30
Gerald Versluis
Рет қаралды 16 М.
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 31 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 38 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Take Pictures in .NET MAUI with the Camera.MAUI CameraView!
13:56
Gerald Versluis
Рет қаралды 24 М.
Starting .NET MAUI Development in 2024 - What You Need To Know
35:18
James Montemagno
Рет қаралды 63 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 209 М.
The Blazor Competitor is Here!
15:08
Nick Chapsas
Рет қаралды 69 М.
3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid
24:05
Gerald Versluis
Рет қаралды 28 М.
Publishing .NET MAUI Apps to the Stores Made Easy
12:19
Gerald Versluis
Рет қаралды 9 М.
Налог на незнание JavaScript - [Hamster Kombat]
50:20
Easily Record Audio with .NET MAUI and Plugin.Maui.Audio
13:26
Gerald Versluis
Рет қаралды 3,8 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 247 М.