Select Different Camera and Prevent Memory Leaks with CameraView

Поделиться
HTML-код
  • Опубликовано: 3 авг 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:
    ruclips.net/channel/Geral...
    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: ruclips.net/user/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
  • НаукаНаука

Комментарии • 27

  • @jfversluis
    @jfversluis  Месяц назад

    Another great control is MediaElement, check it out: ruclips.net/video/_sp4RG0I0x4/видео.html

  • @FredericRoussey
    @FredericRoussey 26 дней назад +2

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

  • @Ojhojojo
    @Ojhojojo День назад +2

    thanks for the awesome video. Do you have maui tutorial on using nfc?

    • @jfversluis
      @jfversluis  День назад +2

      Not yet! I’ve looked into it at some point but never recorded it… I guess it’s about time!

  • @ademineshat
    @ademineshat 27 дней назад

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

    • @jfversluis
      @jfversluis  27 дней назад +1

      What are you building?

    • @ademineshat
      @ademineshat 27 дней назад

      @@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  26 дней назад

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

  • @user-jo5ou2kl6f
    @user-jo5ou2kl6f 26 дней назад

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

    • @jfversluis
      @jfversluis  25 дней назад

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

  • @htrixkod3624
    @htrixkod3624 6 дней назад

    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.

  • @simonmardine6414
    @simonmardine6414 Месяц назад

    Nice catch on the MainPage constructor 😂

    • @jfversluis
      @jfversluis  Месяц назад +3

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

  • @user-wv1dw2ku9e
    @user-wv1dw2ku9e 5 дней назад

    I want to use AI-related features with MAUI.
    Please make a video related to this field.

  • @ahmed-pr8md
    @ahmed-pr8md 25 дней назад

    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 Месяц назад

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

    • @jfversluis
      @jfversluis  Месяц назад

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

    • @PierreH1968
      @PierreH1968 Месяц назад

      @@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 Месяц назад

      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  Месяц назад +1

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

  • @toadman5184
    @toadman5184 27 дней назад

    Is it possible to use this in Blazor MAUI?

    • @jfversluis
      @jfversluis  27 дней назад +1

      Absolutely!
      3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid
      ruclips.net/video/2dllz4NZC0I/видео.html

  • @simonmardine6414
    @simonmardine6414 Месяц назад

  • @tanakamawere
    @tanakamawere 27 дней назад

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

    • @jfversluis
      @jfversluis  27 дней назад

      Not me hoping no one would notice 👀