Select Different Camera and Prevent Memory Leaks with CameraView

  Рет қаралды 1,031

Gerald Versluis

Gerald Versluis

Күн бұрын

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:
kzbin.info/door/ral...
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: kzbin.info...
🐦 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

Пікірлер: 23
@jfversluis
@jfversluis 25 күн бұрын
Another great control is MediaElement, check it out: kzbin.info/www/bejne/laTTZYV9Za5jrpY
@FredericRoussey
@FredericRoussey 18 күн бұрын
It should be nice to have a sample of how to analyse or modify (opencv....) images in the stream of the camera
@mzmouzemimou4206
@mzmouzemimou4206 13 күн бұрын
Agreee
@ademineshat
@ademineshat 19 күн бұрын
Since you asked 😊 It's definitely time to build a small app with nvvm.
@jfversluis
@jfversluis 19 күн бұрын
What are you building?
@ademineshat
@ademineshat 19 күн бұрын
@@jfversluis I mean you not me 😀 I have some side projects. But I want to see something you do and how you do it 😊
@jfversluis
@jfversluis 19 күн бұрын
@@ademineshat oooh gotcha! Haha sorry! So an intro with mvvm?
@user-jo5ou2kl6f
@user-jo5ou2kl6f 19 күн бұрын
Great Video! Wanted to ask how to remove the black lines on the left and right of the CameraView?
@jfversluis
@jfversluis 17 күн бұрын
I haven’t seen that? Maybe select a different resolution?
@simonmardine6414
@simonmardine6414 25 күн бұрын
Nice catch on the MainPage constructor 😂
@jfversluis
@jfversluis 25 күн бұрын
Haha yeah luckily I knew immediately what was going on! And decided to leave it in so you now will know too!
@ahmed-pr8md
@ahmed-pr8md 18 күн бұрын
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 .
@tanakamawere
@tanakamawere 19 күн бұрын
I live for the stalling and talking Gerald does while waiting for MAUI to build😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂. Love you Gerald!
@jfversluis
@jfversluis 19 күн бұрын
Not me hoping no one would notice 👀
@toadman5184
@toadman5184 19 күн бұрын
Is it possible to use this in Blazor MAUI?
@jfversluis
@jfversluis 19 күн бұрын
Absolutely! 3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid kzbin.info/www/bejne/aJXPna1qg792Zqs
@simonmardine6414
@simonmardine6414 25 күн бұрын
@jfversluis
@jfversluis 25 күн бұрын
🫶
@PierreH1968
@PierreH1968 25 күн бұрын
Is there a way to use 2 cameras at the same time (also called director's view) ?
@jfversluis
@jfversluis 25 күн бұрын
I don’t think so simply because it’s not supported by the hardware?
@PierreH1968
@PierreH1968 25 күн бұрын
@@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.
@PierreH1968
@PierreH1968 25 күн бұрын
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)
@jfversluis
@jfversluis 25 күн бұрын
Oooh interesting! I guess you could add 2 CameraView controls and select a different camera for each to try
Take Pictures in Your App with CameraView for .NET MAUI
19:05
Gerald Versluis
Рет қаралды 3,3 М.
Introducing MediaElement for .NET MAUI - Playing Video & Audio
13:35
Gerald Versluis
Рет қаралды 13 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 106 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 26 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 40 МЛН
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
What is the MVVM pattern, What benefits does MVVM have?
22:38
James Montemagno
Рет қаралды 95 М.
Microcharts for Xamarin.Forms
32:45
Achraf Ben Alaya
Рет қаралды 9 М.
Test Bugfixes on Your Own .NET MAUI Project Before They're Released!1!
15:52
Take Pictures in .NET MAUI with the Camera.MAUI CameraView!
13:56
Gerald Versluis
Рет қаралды 23 М.
Adding Fingerprint Or Face Recognition To Your .NET MAUI App
18:00
Gerald Versluis
Рет қаралды 5 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 34 М.
How to Generate PDFs in .NET Apps (2024)
19:15
Gerald Versluis
Рет қаралды 5 М.
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН