ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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

ความคิดเห็น • 27

  • @jfversluis
    @jfversluis  หลายเดือนก่อน

    Another great control is MediaElement, check it out: th-cam.com/video/_sp4RG0I0x4/w-d-xo.html

  • @FredericRoussey
    @FredericRoussey หลายเดือนก่อน +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 5 วันที่ผ่านมา +2

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

    • @jfversluis
      @jfversluis  5 วันที่ผ่านมา +2

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

  • @user-jo5ou2kl6f
    @user-jo5ou2kl6f หลายเดือนก่อน

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

    • @jfversluis
      @jfversluis  29 วันที่ผ่านมา

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

  • @htrixkod3624
    @htrixkod3624 10 วันที่ผ่านมา

    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.

  • @user-wv1dw2ku9e
    @user-wv1dw2ku9e 9 วันที่ผ่านมา

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

  • @tanakamawere
    @tanakamawere หลายเดือนก่อน

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

    • @jfversluis
      @jfversluis  หลายเดือนก่อน

      Not me hoping no one would notice 👀

  • @ademineshat
    @ademineshat หลายเดือนก่อน

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

    • @jfversluis
      @jfversluis  หลายเดือนก่อน +1

      What are you building?

    • @ademineshat
      @ademineshat หลายเดือนก่อน

      @@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  หลายเดือนก่อน

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

  • @toadman5184
    @toadman5184 หลายเดือนก่อน

    Is it possible to use this in Blazor MAUI?

    • @jfversluis
      @jfversluis  หลายเดือนก่อน +1

      Absolutely!
      3 Ways Combine .NET MAUI and .NET MAUI Blazor Hybrid
      th-cam.com/video/2dllz4NZC0I/w-d-xo.html

  • @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!

  • @ahmed-pr8md
    @ahmed-pr8md 29 วันที่ผ่านมา

    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

  • @simonmardine6414
    @simonmardine6414 หลายเดือนก่อน