ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Select Different Camera and Prevent Memory Leaks with CameraView
ฝัง
- เผยแพร่เมื่อ 7 ส.ค. 2024
- I forgot a very important detail in my last CameraView video: don't forget to clean up your resources and prevent memory leaks! Another great control is MediaElement, check it out: • Introducing MediaEleme...
In this video we will look at how to select a different camera with the .NET MAUI CameraView as well as learn how to clean up our resources and not cause any memory leaks in our applications.
💝 Join this channel to get access to perks:
th-cam.com/channels/ral.html...
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: th-cam.com/users/GeraldVerslui...
🐦 Follow me on Twitter: / jfversluis
🤝 Join the Discord server: / discord
🔗 Links
Sample Code Repo: github.com/jfversluis/MauiCam...
CameraView Documentation: learn.microsoft.com/dotnet/co...
⏱ Timestamps
00:00 - CameraView Select Camera
00:14 - .NET MAUI CameraView Follow-up
00:47 - Sample Application Overview
01:47 - Select Front or Rear Camera with CameraProvider
06:16 - Fix Dependency Injection
07:49 - Prevent CameraView Memory Leaks
10:10 - Heard About MediaElement Yet?!
🎥 Video edited with DaVinci Resolve
🙋♂️ Also find my...
Blog: blog.verslu.is
All the rest: jfversluis.dev
#maui #cameraview #android #ios #dotnet #dotnetmaui #communitytoolkit
Another great control is MediaElement, check it out: th-cam.com/video/_sp4RG0I0x4/w-d-xo.html
It should be nice to have a sample of how to analyse or modify (opencv....) images in the stream of the camera
Agreee
thanks for the awesome video. Do you have maui tutorial on using nfc?
Not yet! I’ve looked into it at some point but never recorded it… I guess it’s about time!
Great Video! Wanted to ask how to remove the black lines on the left and right of the CameraView?
I haven’t seen that? Maybe select a different resolution?
Great video! Please Tell me how to connect a USB camera to an Android devices? On Windows camera Provider.Available Cameras sees a USB camera, on Android it sees only the front and back cameras. Thank you.
I want to use AI-related features with MAUI.
Please make a video related to this field.
I live for the stalling and talking Gerald does while waiting for MAUI to build😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂. Love you Gerald!
Not me hoping no one would notice 👀
Since you asked 😊 It's definitely time to build a small app with nvvm.
What are you building?
@@jfversluis I mean you not me 😀
I have some side projects. But I want to see something you do and how you do it 😊
@@ademineshat oooh gotcha! Haha sorry! So an intro with mvvm?
Is it possible to use this in Blazor MAUI?
Absolutely!
3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid
th-cam.com/video/2dllz4NZC0I/w-d-xo.html
Nice catch on the MainPage constructor 😂
Haha yeah luckily I knew immediately what was going on! And decided to leave it in so you now will know too!
hi sir can you help me i can't type dot . in arabic android emulator it showing nothing how can i solve this? i'm trying to build app to calculate two number with maui i'm using two entry box with Numerical keyboard when i'm using english android language it work when im using arabic android language i cant using dot .
Is there a way to use 2 cameras at the same time (also called director's view) ?
I don’t think so simply because it’s not supported by the hardware?
@@jfversluis I have seen it on Android and iPhone, in my Samsung fold it's called director's view and I have seen apps on iPhone doing it too. using concurrent streaming.
It has been available on iPhone since 2019 and introduced by Nokia in 2017 and later by Samsung, but you might be right, the API might have restricted it since newer phones have so many cameras playing together (in the back in particular)
Oooh interesting! I guess you could add 2 CameraView controls and select a different camera for each to try
❤
🫶