Complete CameraX Stable API Tutorial: From Setup to Advanced Use Cases

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

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

  • @awaisahmad5908
    @awaisahmad5908 9 месяцев назад

    wow thank you so much. You guys are real mentors. I really needed the Camera X API for my recent project. Again Thank You.

  • @magamboisaac7602
    @magamboisaac7602 10 месяцев назад

    great tutorial

  • @kujmous
    @kujmous 9 месяцев назад +1

    If you disable the button for capturing video when recording starts, how is it clickable when it is time to stop recording?

  • @sharpcooking6694
    @sharpcooking6694 Год назад

    thanks for this ❤

  • @stephensmithchibale5885
    @stephensmithchibale5885 Год назад +1

    Inside the startCameraX function when I wrote the statement: preview.setSurfaceProvider(mainBinding.pvPreview.getSurfaceProvider()); I got an error saying, 'Cannot resolve symbol 'mainBinding''. Is there something that I have missed out in my code?

    • @CodingReel
      @CodingReel  Год назад +2

      Thanks for trying out the code. Yes, you are missing the mainBinding variable initialization. Here are the things to check:
      1) Verify that viewBinding is enabled in build.gradle
      2) Initialize mainBinding in the activity and pass its root view in setContentView method.

    • @brunop_dev_jr
      @brunop_dev_jr Год назад +1

      In build.grade add in android { viewBinding {
      enabled = true
      } }
      and in your class put this private ActivityCameraTimestampBinding mainBinding; but the name its because my xml are activity_camera_timestamp do something similar to your name.xml.

    • @stephensmithchibale5885
      @stephensmithchibale5885 Год назад

      @@brunop_dev_jr thanks

    • @stephensmithchibale5885
      @stephensmithchibale5885 Год назад

      @@CodingReel thanks