Select Different Camera and Prevent Memory Leaks with CameraView

Sdílet
Vložit
  • čas přidán 27. 07. 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:
    czcams.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: czcams.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
  • Věda a technologie

Komentáře • 23

  • @jfversluis
    @jfversluis  Před 26 dny

    Another great control is MediaElement, check it out: czcams.com/video/_sp4RG0I0x4/video.html

  • @FredericRoussey
    @FredericRoussey Před 19 dny +1

    It should be nice to have a sample of how to analyse or modify (opencv....) images in the stream of the camera

  • @ademineshat
    @ademineshat Před 19 dny

    Since you asked 😊 It's definitely time to build a small app with nvvm.

    • @jfversluis
      @jfversluis  Před 19 dny +1

      What are you building?

    • @ademineshat
      @ademineshat Před 19 dny

      @@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  Před 19 dny

      @@ademineshat oooh gotcha! Haha sorry! So an intro with mvvm?

  • @user-jo5ou2kl6f
    @user-jo5ou2kl6f Před 19 dny

    Great Video! Wanted to ask how to remove the black lines on the left and right of the CameraView?

    • @jfversluis
      @jfversluis  Před 18 dny

      I haven’t seen that? Maybe select a different resolution?

  • @simonmardine6414
    @simonmardine6414 Před 26 dny

    Nice catch on the MainPage constructor 😂

    • @jfversluis
      @jfversluis  Před 26 dny +3

      Haha yeah luckily I knew immediately what was going on! And decided to leave it in so you now will know too!

  • @toadman5184
    @toadman5184 Před 19 dny

    Is it possible to use this in Blazor MAUI?

    • @jfversluis
      @jfversluis  Před 19 dny +1

      Absolutely!
      3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid
      czcams.com/video/2dllz4NZC0I/video.html

  • @tanakamawere
    @tanakamawere Před 20 dny

    I live for the stalling and talking Gerald does while waiting for MAUI to build😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂. Love you Gerald!

    • @jfversluis
      @jfversluis  Před 19 dny

      Not me hoping no one would notice 👀

  • @ahmed-pr8md
    @ahmed-pr8md Před 18 dny

    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 .

  • @PierreH1968
    @PierreH1968 Před 25 dny

    Is there a way to use 2 cameras at the same time (also called director's view) ?

    • @jfversluis
      @jfversluis  Před 25 dny

      I don’t think so simply because it’s not supported by the hardware?

    • @PierreH1968
      @PierreH1968 Před 25 dny

      @@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 Před 25 dny

      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  Před 25 dny +1

      Oooh interesting! I guess you could add 2 CameraView controls and select a different camera for each to try

  • @simonmardine6414
    @simonmardine6414 Před 26 dny